-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Conversation
There was a problem hiding this 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,
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.
658a04d
to
13dedcf
Compare
Thanks for cleaning this up and getting it merged, appreciated!
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? |
Yeah, using |
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
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes