New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go Get throwing disabled by GOPRIVATE/GONOPROXY error #35861
Comments
This seems to be working correctly: You may want to clear go help modules-private has more information on these settings. |
Ah okay, thank you so much @jayconrod. |
@jayconrod Here is the problem, I am noticing. If I add the |
@lafrontz So if I understand correctly, you want to download modules starting with If that's correct, use the settings below. The proxy should return 404 or 410 responses for modules that can be retrieved directly. It should return 200 for modules it can provide and other 4xx codes (for example 403) for modules that should not be retrieved directly. The
Alternatively, the proxy can be responsible for serving all allowed modules, and the
|
@jayconrod Let me explain some more facts in regards to our network In theory, we are trying to set it up, a user can only download Go packages via the Proxy, and the internal VCS (tfs.ups.com) From the test, I have been running, if I add directly to the end of the This output is given: The IP Address in the response does not match the sum.golang.org one, nor any other internal network IPs. |
Sounds like it's hitting an error connecting to Please look through go help module-private and module authentication failures for more info. |
Two things. First, nslookup sum.golang.org 1.1.1.1 Server: 1.1.1.1 Address: 1.1.1.1#53 Non-authoritative answer: Name: sum.golang.org Address: 172.217.9.81 Name: sum.golang.org Address: 2607:f8b0:4009:804::2011 Second, according to the documentation, setting the
The documentation goes on to say the following:
GOPRIVATE=*.corp.example.com GOPROXY=proxy.example.com GONOPROXY=none
Which from how I am reading this, is that my original set up should have skipped the set GONOPROXY=tfs.ups.com set GONOSUMDB=tfs.ups.com set GOPRIVATE=tfs.ups.com set GOPROXY=nexusrmps.njrar.us.ups.com:8443/repository/goproxy-test/ set GOSUMDB=sum.golang.org If I am misunderstanding this all, please explain it to me, because it does not seem to be adding up correctly. |
@lafronzt Did you find a solution for that problem? |
@lucas-dehandschutter I do not seem to be having this issue anymore; however, I have had to set What exactly is the issue you are getting right now? |
@lafronzt |
@hotshot-dot it was actually never fixed. my pending question to @jayconrod has never been addressed, and I am still noticing discrepancies between what they mentioned and what is written in the documentation. |
@lafronzt |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to run a
go get
to retrive a local package hosted on an internal repoWhat did you expect to see?
I expected to see
go get
output display theno go-import meta tags
error.What did you see instead?
Instead, I received the error above
disabled by GOPRIVATE/GONOPROXY
Additional Info
If I set
GOPROXY='direct'
, it seems to throw the correctno go-import meta tags
error.The text was updated successfully, but these errors were encountered: