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: relative path in 'CC' environment variable should be rejected explicitly #38372
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
The The fact that |
I would like to help on this, maybe we need to add checks for go/src/cmd/go/internal/envcmd/env.go Line 105 in 7580937
|
Possibly, but we also need to ensure that the user doesn't get stuck with a bad So in addition to the check in go/src/cmd/go/internal/envcmd/env.go Lines 264 to 266 in 82fcf74
|
I am relatively new to this, so i have some questions: in |
Since a bad |
Change https://golang.org/cl/228517 mentions this issue: |
Can someone please review this? |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I'm on 1.14.1, is that recent enough? It seems troublesome to upgrade to 1.14.2
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
gopls get updated.
What did you see instead?
I have clang installed on my system though. So not sure what the issue is.
Edit: I seem to have fixed this issue. Not sure how, but the VsCode Go extension had me click a button that recompiled a bunch of packages. I'll still leave this issue open though, because the error was confusing, and I don't know how to fix it.
Edit 2: My CC variable was mis-configured because earlier I had ran a shell script that messed with my environment. It is worth noting that whatever fix is implemented should probably explicitly mention the CC variable is the root cause because I had no idea until this issue was filed.
The text was updated successfully, but these errors were encountered: