go: -lang=VER
is passed to Go compiler even if VER is not supported by current version of compiler
#14446
Labels
backend: Go
Go backend-related issues
One user of the Go backend encountered the following error from the Go compiler when using Go 1.16 and trying to compile a transitive dependency that called for Go 1.17 in its go.mod.
This is a bug in how we implemented support for the
-lang=VER
option. Pants should not have passed-lang=go1.17
in this case. See https://github.com/golang/go/blob/30501bbef9fcfc9d53e611aaec4d20bb3cdb8ada/src/cmd/go/internal/work/gc.go#L97-L99.The text was updated successfully, but these errors were encountered: