cmd/go: can't link programs that depend on transitive binary only packages #23473
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
At current tip (git revision 4b3a3bd) building a program that depends on a transitive link of binary only packages does not work, because importcfg.link does not represent all the dependencies.
Written in the form of a test in cmd/go/go_test.go:
This fails with
The problem is that the importcfg.link file describes how to find p1.a, but not how to find p2.a. The internal
Package
struct built for p1 does not list p2 as a dep (since p1 is binary only) so(*Builder).addTransitiveLinkDeps
does not add p2 as aDep
, so it is not added to importcfg.link.CC @rsc
The text was updated successfully, but these errors were encountered: