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
cmd/go: lack of descriptive error when resolving a dependency #47944
Comments
Modules can make use of dependencies that haven't adopted modules yet, and that looks clearly to be an authentication error and not due to a missing Now that you have authentication working properly, |
Hey, thanks for the response! I certainly agree the error message is pretty obvious. I think the main thing that was jarring/unexpected about this was more that a It seems though, that the gitlab individual job tokens don't carry enough scopes for however |
@ETetzlaff, what happens if you run |
@bcmills So if I change our CI pipeline to include the
|
That specific error looks like a duplicate of #47028. |
Ah, thanks for the info! I'll go ahead and close this issue at this point as I have my workaround and I agree, it does look to be similar to that issue. |
When updating to go 1.17, we ran into issues running
go mod tidy
and resolving private internal packages. These packages were still running on the old go pkg management. In order to fix this we went in and converted said private internal package to use go modules and things worked. However, the error message was from git and not from go and took unnecessary amounts of time to guess what the actual underlying issue was.@skunkworker
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
)?Docker 1.17.0-alpine
go env
OutputWhat did you do?
git config includes a url insteadOf block for private dependencies
GOPRIVATE="*.<company_name>.gitlab.com" go mod tidy
What did you expect to see?
A useful error message describing that private dependency was not resolvable due to modules not being used on it.
ex. Go mod failed trying to resolve dependency: Missing go.mod file inside of `gitlab.<company_name>.com/<package_name>
What did you see instead?
The text was updated successfully, but these errors were encountered: