Skip to content

Instantly share code, notes, and snippets.

@pocoz
Created January 13, 2022 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pocoz/64b947a83469a7a37952141ba4234b97 to your computer and use it in GitHub Desktop.
Save pocoz/64b947a83469a7a37952141ba4234b97 to your computer and use it in GitHub Desktop.
update modules to latest version
Just 'go get' at the commit hash you want:
go get github.com/someone/some_module@af044c0995fe
'go get' will correctly update the dependency files (go.mod, go.sum).
More information: https://github.com/golang/go/wiki/Modules#how-to-upgrade-and-downgrade-dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment