I’ve gotten as far as
go get -v -u something but sometimes that “something” is a project I’d like to participate in, and contribute to. Go puts the source code in something like GOPATH/pkg/mod/something-releaseversion/ which obviously isn’t the version people are currently working on. I tried “something@latest” but that only got the latest release version, and “something@branch” removes the branch name, and replaces it with a time specific, cryptographic hash specific snapshot like “firstname.lastname@example.org”. The moment I change one letter of source code, it’s a new commit hash, and a new timestamp, and maybe even a new version. So how do I get “something@branch” that keeps up to date with the latest version at that branch, which other people may also be contributing to?
I tried ignoring the name and just pretending like I could edit the source code inside “email@example.com” but I couldn’t figure out how to rebuild anything. “go get -v -u something@master” just leaves the currently built stuff, and “go build” just tells me things like
cannot find package "go.mindeco.de/log" even though it never pulled that package in the initial “go get.”
I feel like I’m missing something super simple here.