I'm confused; while I haven't used that sort of setup, the documentation does seem to address the case.
https://go.dev/ref/mod#module-proxy https://go.dev/ref/mod#vcs https://go.dev/ref/mod#private-modules I can't tell from what you're saying whether you're using those facilities or not, but that's where I'd look. On Fri, Aug 5, 2022 at 9:22 AM Rich <rma...@gmail.com> wrote: > Go modules have been frustrating working with internal sites that use > ssh. There is NO option to use HTTP. THere is no option to use a proxy. So > I set up my go mod to contain > > go.mod file: > require > codecloud.web.mycompany.com/devgroup/mypackage.git v1.0.0 > > .gitconfig file: > [url "ssh://g...@codecloud.web.mycompany.com/"] > *insteadOf* = https://codecloud.web.mycompany.com/ > > go env: > go env -w GOPRIVATE=codecloud.web.att.com/* > (I've tried the full path here and I get the same error) > > ERROR: > go mod download codecloud.web.att.com/devgroup/mypackage > go: codecloud.web.att.com/devgroup/mypackage.git@v1.0.0: reading > codecloud.web.att.com/devgroup/mypackage.git/go.mod at revision v1.0.0: > unknown revision v1.0.0 > > I really don't get why this is so $#@! hard and not some simple setting in > go.mod like this: > > require > private git@ssh://codecloud.web.mycompany.com/devgroup/mypackage > v1.0.0 > > -- but it's broken, it doesn't work, and I am out of what to google next. > > -- > 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/cf2ef966-3bc5-4e81-89be-c130c624786fn%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/cf2ef966-3bc5-4e81-89be-c130c624786fn%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/CA%2BYjuxtgZTS0KA_7wwq-ZQwVruN3202yRdtfHQ5BBp2ur93bKA%40mail.gmail.com.