Open jasonwbarnett opened 3 months ago
Looked like #20677 but I think this is different. Likely fall-out from that.
We probably need to make sure we only pass go1.X
as a value to the -lang
parameter.
The relevant part of the code is https://github.com/pantsbuild/pants/blob/3200ee3c397ca9b7ed22310f4f77e37933554dc7/src/python/pants/backend/go/util_rules/build_pkg.py#L716-L720.
Thanks. I'll try to post a fix in the next few days.
This looks like the error reported in https://github.com/golang/go/issues/66553.
Is it possible that Pants is caching golang.org/x/tools/gopls
somewhere? If so then maybe the fix should be to install gopls
using the resolved go_version
?
Describe the bug When I had the following
go.mod
compiling the program via pants failed with this error:
After updating the
go.mod
to this it worked:Pants version 2.21.0.dev3
OS Mac OS