Hacker News new | past | comments | ask | show | jobs | submit login

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.




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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: