-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
testers.hasPkgConfigModules: add optional version check #307770
Conversation
Not sure how I feel about the tester's name, there probably are better choices |
would it make sense to put both tests into one and then have a flag to enable/disable checking version? |
I think it'd be fine to put the check in the existing function - sort of; does need a rename then, but that's all. Usually, small functions are good, but derivations do have some overhead, such as extra substituter queries, so I try to factor that in to my decisions, although I'm probably not very consistent about that anyway. Just my two cents. |
Which existing function? There's both
Absolutely. My preference would also be to have that in |
53c5af0
to
6493e5c
Compare
@roberth I made the check part of In principle, I guess the test could be made part of |
Fixed corner case where |
866a16d
to
53671e0
Compare
Result of |
Interface and implementation look good. |
…ameter in the appropriate section
Done, and thanks: the a=0
((a++)) # Increments a and returns 1, which causes the script to exit under `set -e`
((a+=1)) # Increments a but does not return the result, does not cause an error PS: Sorry, forgot to |
cee577b
to
0f61c16
Compare
0f61c16
to
c150eb5
Compare
Sorry, I had forgotten to rebase the |
@roberth Could you confirm this is OK to merge for you, now there are tests? |
Awesome, thanks! |
Bisect indicates this commit broke
|
Shell script is currently buggy and effectively ignores the value, always enforcing version match: NixOS#307770 (comment)
Broke tests, as the version check was effectively always enabled: NixOS#307770 (comment)
Description of changes
testers
: addpkgConfigModulesVersions
, which tests that pkgconf modules' version metadata match the package'sminiz
: use the new testerdoc
: mention the new tester inpkg-config
sectionNot done: making the new tester run as part of
testMetaPkgConfig
, as the new test fails on some drvs.Things done
nixpkgs-review
.Add a 👍 reaction to pull requests you find important.