Skip to content

Instantly share code, notes, and snippets.

@Aurora12
Last active November 18, 2024 14:40
Show Gist options
  • Save Aurora12/44f1cbf7f5ad267602963599e14f6c47 to your computer and use it in GitHub Desktop.
Save Aurora12/44f1cbf7f5ad267602963599e14f6c47 to your computer and use it in GitHub Desktop.
Go mod replace package version with a commit
go mod edit -replace github.com/repo=github.com/repo@commit-hash
go mod tidy
go mod vendor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment