Skip to content
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

please_go: remove Go <= 1.19 coverage generation code #291

Conversation

chrisnovakovic
Copy link
Contributor

Go 1.20 made breaking changes to the way in which coverage is computed. This required the coverageredesign GOEXPERIMENT to be enabled when using go-rules with Go 1.20 onwards.

Go 1.19 has now been EOL for almost a year, and the coveragedesign GOEXPERIMENT will be removed from Go shortly, having been the default for around 18 months. Remove the following features from please_go that supported the Go <= 1.19 method of computing coverage:

  • The covervars command, which is no longer necessary with coverageredesign.
  • The generation of Go <= 1.19-compatible test main files with the testmain command.

Copy link
Contributor

@peterebden peterebden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! Good to see all this go away again

Go 1.20 made breaking changes to the way in which coverage is computed.
This required the `coverageredesign` GOEXPERIMENT to be enabled when
using go-rules with Go 1.20 onwards.

Go 1.19 has now been EOL for almost a year, and the `coveragedesign`
GOEXPERIMENT will be removed from Go shortly, having been the default
for around 18 months. Remove the following features from please_go that
supported the Go <= 1.19 method of computing coverage:

* The `covervars` command, which is no longer necessary with
  `coverageredesign`.
* The generation of Go <= 1.19-compatible test main files with the
  `testmain` command.
@chrisnovakovic chrisnovakovic force-pushed the please_go-remove-old-coverage branch from b5ea0b4 to 5097667 Compare August 27, 2024 12:59
@chrisnovakovic chrisnovakovic merged commit f0ce150 into please-build:master Aug 27, 2024
5 checks passed
@chrisnovakovic chrisnovakovic deleted the please_go-remove-old-coverage branch August 27, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants