I have been using go modules and an
import for a while. The problem I’m describing below has always been there, but was never an issue as the latest version of my dependency worked fine. Until this week.
So this is my set-up:
imports: - path: github.com/hakimel/reveal.js mounts: - source: dist target: static/vendor/reveal.js - source: plugin target: static/vendor/reveal.js/plugin
hugo mod init …when i started this project
Because a need a specific version (now), i did
$ hugo mod get email@example.com
In my docker build i have:
RUN hugo mod get
It is on this step i get the unwanted behaviour. For some reason it downloads an update:
``` STEP 18: RUN hugo mod get hugo: downloading modules … hugo: collected modules in 3353 ms go: downloading github.com/hakimel/reveal.js v0.0.0-20210608071857-1be851658f0e go get: upgraded github.com/hakimel/reveal.js v0.0.0-20201012095104-0582f57517c9 => v0.0.0-20210608071857-1be851658f0e ```
I don’t want this update to take place.
What am i doing wrong?