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

Update deps, test with latest Go #234

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Conversation

abhinav
Copy link
Contributor

@abhinav abhinav commented May 31, 2023

(Commits are individually reviewable.)

This PR does two things:

  • updates dependencies of errcheck so that its tests
    can run against the latest versions of Go
  • changes CI to run against Go 1.18, 1.19, and 1.20

Note that per the upstream Go support policy,
only the latest two minor releases are supported.
So with Go 1.20 being the current release,
upstream only supports Go 1.19 and 1.20.
(Support in this context means that only these releases get bug fixes
and security fixes.)

This change leaves in support for 1.18 to ensure that errcheck keeps working
for any stragglers who haven't yet upgraded to at least 1.19,
but it drops testing against all older versions.

Supersedes #231

Upgrades to the latest release of /x/tools and friends.
This is necessary to fix errors during `go test` similar to:

    This fixes errors like this: internal error: package "bytes" without types was imported from "command-line-arguments"

Supersedes kisielk#231
Switch CI to only test against Go 1.18 to 1.20.
Per the Go support policy, only 1.19 and 1.20 are currently supported,
but I've left 1.18 in there to support stragglers.

To reduce duplication in the CI job, this also switches to a test matrix
instead of copy-pasting the steps between each job.
.github/workflows/errcheck.yml Show resolved Hide resolved
go.sum Show resolved Hide resolved
@kisielk kisielk merged commit 1a21a9c into kisielk:master Nov 2, 2023
@kisielk kisielk mentioned this pull request Nov 2, 2023
@abhinav abhinav deleted the update-go branch February 13, 2024 13:30
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