-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: rebuilds standard library inappropriately in modules mode #28333
Comments
After Google search, I've decided to create this ticket, because INET don't know about this issue .... |
What command did you run to get that error? |
net/http
net/http
net/http
@ianlancetaylor just |
Go was installed using official bundle and tried with |
I recently used MacOS |
Little bit about $(go env CC) --version:
=== which $(go env CC):
|
Can you do a |
@agnivade I've got
|
Since you are just compiling a single file, you don't need modules. Can you try without module mode ? |
@agnivade I have a multi bundled project, few entry points .... My code described above - just an example |
@agnivade Ok, I will in another project to run without modules |
@agnivade Yeah, without module mode - it is working. Compiled successfully |
@agnivade So, I've moved my project to the $GOPATH and it was compiled successfully. Looks like this is issue in |
I am still unable to reproduce this. In an empty dir, I copied your file. Then
This prints a long log, but builds successfully. I am on linux though. Can you try doing a |
@agnivade Unfortunately the same error. I think it is can be reproduced with latest MacOS. By the way, it's worked before upgrade of OS.... Maybe something was changed into the OS core things... Because, i've defiged |
@agnivade How do you think, it is can be an issue? |
One more thing, I've searched for this file |
how I understand, Clang expecting |
@agnivade In module mode works with |
But I hope, this is temporary ... |
Likely the same as #26988: in some cases the go tool is incorrectly deciding that it needs to rebuild the standard library. |
Closing as duplicate of #26988. |
Please answer these questions before submitting your issue. Thanks!
What did you do?
What did you expect to see?
Listening of http server
What did you see instead?
System details
The text was updated successfully, but these errors were encountered: