Skip to content

Instantly share code, notes, and snippets.

@lentzi90
Last active February 9, 2023 11:07
Show Gist options
  • Save lentzi90/8ca3475ec84ef8aad1c945e6124d412a to your computer and use it in GitHub Desktop.
Save lentzi90/8ca3475ec84ef8aad1c945e6124d412a to your computer and use it in GitHub Desktop.
Golang gists

Using go mod edit -replace to point to a fork/branch:

go mod edit -replace=github.com/old/package=github.com/org/new@git-sha
go mod tidy
# Example
go mod edit -replace=github.com/gophercloud/utils=github.com/Nordix/utils@15c0993ad12ecbb108cf1f81b1b3da451bbefdad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment