It's not quite what you're after, but FWIW the gohack command ( github.com/rogpeppe/gohack) knows enough to download arbitrary Go modules including the VCS checkout. You might find it useful, I guess.
For example: % gohack get -vcs golang.org/x/mod creating golang.org/x/mod@v0.16.0 golang.org/x/mod => /home/rogpeppe/gohack/golang.org/x/mod % cd /home/rogpeppe/gohack/golang.org/x/mod % git log -1 commit 766dc5df63e3e3e5cd6b1682f522a01c99723beb (HEAD, tag: v0.16.0) Author: Sam Thanawalla <samthanawa...@google.com> Date: Fri Feb 2 20:14:19 2024 +0000 ... etc Now that workspaces are a thing, it might be nice for it to add it to the current go.work file rather than to go.mod, I guess. On Sun, 3 Mar 2024 at 21:25, Jeffery Carr <basilarc...@gmail.com> wrote: > Has this been deprecated or maybe it is broken in debian sid, but: > > bash$ GO111MODULE=off go get -v go.wit.com/apps/test > go: modules disabled by GO111MODULE=off; see 'go help modules' > basj$ go version > go version go1.22.0 linux/amd64 > > this doesn't work anymore. Also, 'go help modules' is less than helpful. > > Is there some other way to download the actual sourcecode into > ~/go/src/mything/ anymore? > > This functionality was _PERFECT_ in my experience. I can't even imagine > why it would be deprecated. How in the world are you all developing > complicated software using GO without this working? Is this why everyone > has gazillions of internal/ packages and massive git repos? > > Thanks in advance for any advice, > jcarr > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/8a3d883a-039e-4a95-8fc4-ff9fc0b874c2n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/8a3d883a-039e-4a95-8fc4-ff9fc0b874c2n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAJhgacj91pUm-B9Yy6W9jBUAf_X8hk5ing%2BAmTG0PayOBuh87A%40mail.gmail.com.