-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: TestScript/mod_convert_git fails if GOROOT is in a subdirectory of a git repository #34191
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
Comments
Probably the check for “within GOROOT” just needs to be fixed to apply whenever the working directory is inside GOROOT, not just when the candidate config file is inside of it. Hopefully an easy fix. |
This is very inconvenient when you manage your $HOME with git. :) |
@guillemj, I do manage my |
At any rate, do note the |
@bcmills This was in the context of building the golang-1.14 Debian package (from tarballs) so I'm afraid that does not entirely help. :) |
Change https://golang.org/cl/223340 mentions this issue: |
(And, FWIW, this turned out to be a very minor bug in |
Perfect thanks! I've tested the patch within the Debian package and it builds fine now. I've updated the Debian bug https://bugs.debian.org/953276, and I guess they'll merge that. |
@guillemj, note that the patch changed a bit before it was merged. |
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 am currently packaging go 1.13 for Openindiana. Our buildsystem is a git repository with Makefiles which run standardized build commands to ensure the correct compiler and linker are used for our OS. You can find the Repository in Github at https://github.com/OpenIndiana/oi-userland
When running the tests for go 1.13 we noticed that one test fails when calling the git comand.
Our scripts basically run
The Pull Request for go 1.13 is located at OpenIndiana/oi-userland#5297
If we however copy the directory out of the git repository into any other location the tests pass.
This issue is not blocking for Packaging but it would be nice to have it be fixed. go 1.12 did succeed with all tests
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: