-
-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile: invalid value "go1.21.7" for -lang: should be something like "go1.12" #20723
Comments
Looked like #20677 but I think this is different. Likely fall-out from that. |
We probably need to make sure we only pass |
The relevant part of the code is pants/src/python/pants/backend/go/util_rules/build_pkg.py Lines 716 to 720 in 3200ee3
|
Thanks. I'll try to post a fix in the next few days. |
This looks like the error reported in golang/go#66553. Is it possible that Pants is caching |
Pants does not use gopls at all. The linked source files are the likely culprit since they generate the actual |
Does anyone have another work around in the meantime while we wait for the patch? Modifying my |
Should hopefully fix #20723 --------- Co-authored-by: Huon Wilson <[email protected]>
… (#21618) Should hopefully fix #20723 --------- Co-authored-by: Sven Widén <[email protected]> Co-authored-by: Huon Wilson <[email protected]> Co-authored-by: Tom Dyas <[email protected]>
… (#21617) Should hopefully fix #20723 --------- Co-authored-by: Sven Widén <[email protected]> Co-authored-by: Huon Wilson <[email protected]> Co-authored-by: Tom Dyas <[email protected]>
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
The text was updated successfully, but these errors were encountered: