-
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: go list reports net as "stale" right after ./make.bash (but only inside GOROOT/src) #44725
Comments
This is possibly a side-effect of the way the vendored When you are inside However, when you move outside of When that happens, the package itself becomes stale, because its identity (and therefore its debug information, and perhaps its export metadata) has changed. |
This probably changed as of CL 251159, which removed special-case code for That special-case forced the vendored @jayconrod, @matloob: do you think we should restore that special-case (so that the dependencies of packages in |
I'd lean toward restoring the special case (I hate saying that). It's pretty confusing that these packages have multiple identities. It's taken me longer than I'd like to admit to re-read your comments and the CL to work out what's going on. |
Yeah, I agree. I have a CL in progress. 😁 |
Change https://golang.org/cl/297869 mentions this issue: |
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 building Go from source at Go 1.16 and 1.15.8, comparing whether the
net
package is reported as stale or not right after a./make.bash
.What did you expect to see?
I expected that
net
is reported not stale after./make.bash
with both Go versions.What did you see instead?
net
is reported as not stale when using 1.15.8 both inside GOROOT/src and outside:net
is reported as not stale when using 1.16 outside GOROOT/src, but stale inside:I ran into this while investigating #44714 with @toothrot, and we both thought this was worth reporting so that it can be investigated as needed.
(While writing up this issue report, I realized it makes a difference whether the
go list
command is run in GOROOT/src or outside, which is not something I realized earlier.)CC @jayconrod, @bcmills, @matloob.
The text was updated successfully, but these errors were encountered: