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/pack: gc linkobjs not recognized in 1.16b1 #43271
Comments
Marking as a release blocker to make sure we figure out what is going on. |
Sorry, I'm not sure I understand what you wanted to do here. pkg.a is already an archive file. You pack it again to link.a, then unpack it, but you are not expecting to get pkg.a back. Why do you want to pack an already-packed archive file? |
This situation arises when creating a package archive containing (I'm not at all wedded to using |
I think you can use
If you use |
I just meant it would be nicer from a scalability perspective to not have to duplicate native objects into an archive in order to pass them to |
Change https://golang.org/cl/279483 mentions this issue: |
The CL above restores the Go 1.15 behavior. But I wanted to mention that this behavior is somewhat accidental. With Go 1.15's cmd/pack, If you want the append semantics, I would recommend using the "r" command, instead of this peculiar undocumented "see through" behavior of the "c" command. |
Thank you.
I thought the commit message of CL 102236 meant the behavior was not accidental. Before the compiler always emitted an archive, one could use |
It is not guaranteed that the tool's (e.g. pack) behavior not change, especially undocumented behavior. Use the "r" command if you want to append. |
The comment certainly says that. But judging by the nested I think if it was really my intention to require that both files were present, I would have used a single |
The text was updated successfully, but these errors were encountered: