I have a private github repository that depends on an open source github repository. There's an open PR in the open source repo, and I'd like to `go get` that change to test it locally in my private repo.
Normally, when I update the open source repository, I can just run `go get github.com/MY_ORG/MY_OSS_REPO@<branch|revision>`. If I use the full SHA of the most recent commit in the PR, this works fine. But I can't get it to work for variations of `go get github.com/ORG/REPO@{refs/,}pull/123{,/head}`, following the instructions at https://help.github.com/articles/checking-out-pull-requests-locally/ and https://stackoverflow.com/q/6743514. I get the impression that there's something special about the pull refs that you have to request them directly, since they don't get pulled during a plain `git fetch` during normal repository work. I would prefer to use the direct PR ref, rather than the SHA. I can figure out how to script retrieving the SHA from the PR number, so I have a valid workaround, but I thought I'd ask here to see if maybe I missed some obvious way to go get by PR number. -- 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. For more options, visit https://groups.google.com/d/optout.