cmd/dist: ensure consistency between (*tester).supportedBuildmode and cmd/internal/sys.BuildModeSupported #43571
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
(*cmd/dist.tester).supportedBuildmode
contains a large switch that determines whether a given buildmode is supported for a givenGOOS
/GOARCH
:go/src/cmd/dist/test.go
Lines 977 to 1038 in fa90aac
That switch nearly exactly duplicates the one in
cmd/internal/sys.BuildModeSupported
, which was itself extracted from a portion ofcmd/go/internal/work.buildModeInit
.cmd/dist
should be changed to use (instead of duplicating) the function fromcmd/internal/sys
.The text was updated successfully, but these errors were encountered: