python3Packages.google-cloud-kms: refactor#409933
Conversation
b5197d0 to
73206de
Compare
73206de to
d0e6e3a
Compare
d0e6e3a to
e4dfe6d
Compare
dotlambda
left a comment
There was a problem hiding this comment.
No need to target staging. I can run nixpkgs-review for you.
There was a problem hiding this comment.
Is there any advantage over
| passthru.updateScript = nix-update-script { | |
| extraArgs = [ | |
| "--version-regex" | |
| "google-cloud-kms-v[0-9.]+)" | |
| ]; | |
| }; | |
| passthru.updateScript = gitUpdater { | |
| rev-prefix = "google-cloud-kms-v"; | |
| }; |
?
There was a problem hiding this comment.
gitUpdater will grab the wrong update from monorepos with multiple components in the release list. The updater gets a list of tags, strips off the prefix then sorts and grabs the first. It's not filtering by prefix.
Having been bitten by this multiple times (e.g. on langchain and langgraph), I've found the only reliable fix is the one I'm using. nix-update-script is applying the regex as a filter before sorting.
There was a problem hiding this comment.
It does pick the correct tag if you specify rev-prefix.
There was a problem hiding this comment.
Aha, I misread the code.
There was a problem hiding this comment.
Updated. Now to go hunt through my other open PRs.
Thank you. To confirm, I should put this on |
Yes |
2218c12 to
09b8a32
Compare
Use Github source, enable update script, add maintainer.
09b8a32 to
91afc8d
Compare
Changes all applied, rebased to |
|
Use Github source, enable update script, add maintainer.
Tracking: #407693
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.