<#22579 Go backend sets unsupported GOEXPERIMENT=c...
# github-notifications
c
#22579 Go backend sets unsupported GOEXPERIMENT=coverageredesign causing failure on Go 1.25 Issue created by andskli Describe the bug Running the following generate-lockfiles (and likely other commands) fail with go v1.25 installed. $ pants generate-lockfiles --resolve=python-default 215849.85 [ERROR] 1 Exception encountered: Engine traceback: in
generate-lockfiles
goal ProcessExecutionFailure: Process 'Parse re/dac/ted/go.mod' failed with exit code 2. stdout: stderr: go: unknown GOEXPERIMENT coverageredesign Use
--keep-sandboxes=on_failure
to preserve the process chroot for inspection. My shell environment does not set GOEXPERIMENT; this appears to come from Pants’ Go backend. This worked with Go 1.24, but breaks with Go 1.25 because the coverageredesign experiment was removed from the toolchain: • Tracking issue to remove the experiment: golang/go#55953 • Tracking issue to remove `GOEXPERIMENT=coverageredesign`: golang/go#57943 Expected behavior: Pants should not inject unsupported GOEXPERIMENT values. For Go ≥ 1.23 (and definitely in 1.25), coverageredesign is no longer a valid experiment and causes go to error out. Pants version 2.25.1 OS MacOS Additional info Workaround: roll back to go v1.24 pantsbuild/pants