cmd/go: consider erroring if go list -f
requests a field that can't be available
#51638
Labels
GoCommand
cmd/go
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
I just spent a couple of minutes wondering why this printed nothing:
I was of course forgetting the
-export
flag, which fills fields likeBuildID
.Instead of silently using the field that will always be unset, it would be nice if cmd/go failed with an obvious message, like: did you forget to set the
-export
flag?The text was updated successfully, but these errors were encountered: