Hacker News new | ask | show | jobs
by antwerpen 2652 days ago
Ah. The trick is to substitute in the go.mod file's require block.:

s/$SEMANTIC_VERSION_BRANCH/$BRANCH

In this case, $BRANCH == 'master'. 'go build' will resolve 'master' to a specific commit hash version.

1 comments

you can also `go get google.golang.org/api@master`