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.

Reply via email to