Hello. I was hoping to get some smart advice on a problem using go on a 
closed network. 

Summary:
- closed network, no outside access (painful, I know)
- moved all needed packages to ~/go/pkg...
- using go modules

Problem:
go mod insists on using the network (can't). When I set GOPROXY=off go mod 
tidy yells then quits:

github.com/Jeffail/gabs/v2: cannot find module providing package 
github.com/Jeffail/gabs/v2: module lookup disabled by GOPROXY=off

I've tried using replace in go.mod. Same failures. If GOPROXY=off, above 
error. If GOPROXY is set to default values it fails on network access.

It would be fantastic if there were a way to use go mod and have it look 
locally first before trying the network. I don't see a way to do that in 
the docs. I even tied -pkgdir dir from the go build docs and that fails 
with network access.

Is there a potential that my go install is somehow broken? 

I suppose I could vendor everything but it would be better if the tool 
would find the packages already copied to the closed network.

Pulling my hair out. Thanks in advance for your advice Gophers!   

David

-- 
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/4a400763-dddb-46d7-abf4-2beb711e1287n%40googlegroups.com.

Reply via email to