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

errcheck: 1.6.0 -> unstable-2022-03-26 #167423

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

euank
Copy link
Member

@euank euank commented Apr 5, 2022

Description of changes

This updates errcheck to a newer version which has go1.18 support.

There's no tagged release yet for this, but without this change, this
package breaks under go1.18, so it seems worth updating before upstream
tags.

Related to #164320

The switch to 'subPackages' was added because 'testdata' contains a
'main_test.go' file which is not meant to be actually tested, and the
default checkPhase will try to run 'cd testdata && go test' unless you
do something to override it. Since checkPhase doesn't respect
'excludedPackages', but does respect 'subPackages', this seemed like a
reasonable way to do that.

Changelog

There's no actual changelog, but here's the diff:

kisielk/errcheck@v1.6.0...e62617a

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot requested a review from kalbasit April 5, 2022 22:25
@SuperSandro2000 SuperSandro2000 changed the title pkgs/errcheck: 1.6.0 -> 20220325-e62617a, and go1.18 errcheck: 1.6.0 -> 20220325-e62617a, and go1.18 Apr 8, 2022
Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

Please don't introduce new occurrences of legacy ways of doing things,

pkgs/development/tools/errcheck/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/errcheck/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/errcheck/default.nix Outdated Show resolved Hide resolved
@SuperSandro2000 SuperSandro2000 changed the title errcheck: 1.6.0 -> 20220325-e62617a, and go1.18 errcheck: 1.6.0 -> unstable-2022-03-25 Apr 8, 2022
@SuperSandro2000 SuperSandro2000 changed the title errcheck: 1.6.0 -> unstable-2022-03-25 errcheck: 1.6.0 -> unstable-2022-03-26 Apr 8, 2022
This updates errcheck to a newer version which has go1.18 support.

There's no tagged release yet for this, but without this change, this
package breaks under go1.18, so it seems worth updating before upstream
tags.

Related to NixOS#164320

The switch to 'subPackages' was added because 'testdata' contains a
'main_test.go' file which is not meant to be actually tested, and the
default checkPhase will try to run 'cd testdata && go test' unless you
do _something_ to override it. Since checkPhase doesn't respect
'excludedPackages', but does respect 'subPackages', this seemed like a
reasonable way to do that.
@euank
Copy link
Member Author

euank commented Apr 13, 2022

Thanks for cleaning this up and getting it merged, appreciated!

Please don't introduce new occurrences of legacy ways of doing things,

To double check, this was the versioning?

I missed the discussion, and looking around I see NixOS/rfcs#107

Is that the best resource for how I should be looking to do this, or is there a better source of info for the correct idioms?

@SuperSandro2000
Copy link
Member

To double check, this was the versioning?

Yeah, using unstable-XXXX-XX-XX is enough. We don't need to change the code around to also have the short hash in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants