Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I force to use specific package version while running go mod download? #43300

Closed
shreeharsha-factly opened this issue Dec 21, 2020 · 1 comment

Comments

@shreeharsha-factly
Copy link

What version of Go are you using (go version)?

$ go version 1.13

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOOS="darwin"
GOARCH="amd64"

What did you do?

go.mod file

go 1.13

require (
  ...
  gorm.io/gorm v1.20.5
) 

when I just run go mod download then packages in my go.mod file upgrades automatically even after I specified a version.

What did you expect to see?

go 1.13

require (
  ...
  gorm.io/gorm v1.20.5
) 

What did you see instead?

go 1.13

require (
  ...
  gorm.io/gorm v1.20.7
) 

How can I stop this upgrade while running go mod download?

@mdlayher
Copy link
Member

Please see https://github.com/golang/go/wiki/Questions.

@golang golang locked and limited conversation to collaborators Dec 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants