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: object mismatch error switching between 1.6beta2 and rc1 #14176
Comments
In a Go release, including go1.6beta2 and go1.6rc1, the standard library is not rebuilt even if it appears to be out of date. Your script will work as long as you are not working with releases, but if you are using releases you need to I'm sure enough that that is the problem here that I am going to close this, but please feel free to reopen if you disagree. |
Sorry, I don't follow. The main issue in my repro is getting this error for an object which is not part of the standard library:
Is my understanding that objects in |
Sorry, I must have misunderstood. |
When I download https://storage.googleapis.com/golang/go1.6rc1.darwin-amd64.tar.gz I 'm puzzled by the fact that runtime/internal/sys/zversion.go says |
This may have something to do with how the releases are built. CC @broady |
I did just try the same repro process but going from 1.5.2 to 1.5.3 and it worked as expected. So yes, perhaps something about building these beta/rc releases. |
That does look weird. I thought 1.6rc1 would be built as a "release" build, unlike the beta builds. |
I get this:
|
And for beta2:
|
LGTM. @ianlancetaylor I'm not sure how you got to your result. |
Sorry, maybe I was mistaken. I'll check again. |
I'm sorry, my mistake entirely. No idea what is going on here. |
Hi @dpiddy. Thank you for putting together a reproduction case. I am trying to follow along, but |
Never mind, @dpiddy. I made the obvious rebuild-issue importing foo based on your -x output and that reproduced the problem. Thanks again. |
Still having trouble with this, even with rc2. It might be a godep issue. Have a repro in the project that led to this issue being created, trying to create something self-contained. |
What happens if you reverse the order of the GOPATH entires, ie put On Fri, Feb 5, 2016 at 2:19 AM, Dan Peterson notifications@github.com
|
It works, added output from that case to the bottom of the readme. |
That's what I suspected, the stale check is being tripped up because the On Fri, 5 Feb 2016, 08:07 Dan Peterson notifications@github.com wrote:
|
@davecheney so should this be reopened? Or is it a dup of #14192? |
Not sure, it looks related, but the pathology is different. On Fri, 5 Feb 2016, 13:26 Dan Peterson notifications@github.com wrote:
|
Reopening this issue because the repro case is here. It may be a dup of 14192 or not. I will look before the release. |
CL https://golang.org/cl/19385 mentions this issue. |
Verified the CL fixed my repro. |
It's my understanding that changing Go versions should rebuild package objects as necessary. Today, I got an error like this:
Put together a repro:
@dominikh noted the buildids for
rebuild-issue.a
were the same and also produced this:Perhaps this is a release process issue?
The text was updated successfully, but these errors were encountered: