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