A number of exported functions in modload call base.Errorf and base.Fatalf. Instead of printing to stderr and exiting, functions in this package should return errors (ideally structured errors). This will make commands with non-standard error handling like go list -e, go build -n, and go mod download -json easier to implement.
A number of exported functions in
modloadcallbase.Errorfandbase.Fatalf. Instead of printing to stderr and exiting, functions in this package should return errors (ideally structured errors). This will make commands with non-standard error handling likego list -e,go build -n, andgo mod download -jsoneasier to implement.