Repository navigation
losslesscut: create a custom updateScript, 3.68.0 -> 3.69.0 - #541784
Conversation
3c3785c to
b9d2b5c
Compare
| exit 0 | ||
| fi | ||
|
|
||
| nix-update "$UPDATE_NIX_PNAME" --version "$latestVersion" || true |
There was a problem hiding this comment.
Why ignore errors (|| true)?
There was a problem hiding this comment.
I created that file from copying pieces from other ones. Currently on nixpkgs there are 5 update.sh that include both yarn-berry-fetcher missing-hashes & nix-update strings and among them 4 of them use || true at the end of nix-update. So I happened to pick one of those.
Now that you raise this up, I don't know whether that has a real purpose or happened to become the majority due to cargo culting. And the reason I didn't dissect the script in detail was because I feel like having to generate missing-hashes.json manually between 2 nix-update invocations was unfortunate and was hoping this could also be delegated to nix-update. So I was considering this script as temporary (Mic92/nix-update#640), which I should probably mention in the PR description.
In any case, I can remove those if you prefer it that way.
There was a problem hiding this comment.
I much prefer it that way. In general, but also in this particular case if this command fails, then the src (probably) hasn't been updated and yarn-berry-fetcher will end up running on the old source.
|
b9d2b5c to
f40e4a6
Compare
|
This PR slipped out of my radar. Sorry for late reply. |
|
Could you update this PR and make it work after PR ##555729 |
This is because `nix-update` doesn't handle `yarn-berry-fetcher missing-hashes` by itself.
f40e4a6 to
9a3fe0e
Compare
|
❌
|
|
It seems I can set |
|
I think you're supposed to do |
shelvacu
left a comment
There was a problem hiding this comment.
marking darwin broken would be nice but not a blocker
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-26.05
git worktree add -d .worktree/backport-541784-to-release-26.05 origin/release-26.05
cd .worktree/backport-541784-to-release-26.05
git switch --create backport-541784-to-release-26.05
git cherry-pick -x b4d510f2f5ee0c1da180e86ced452ab030e9af2a 9a3fe0ea6407bfd8b70fedf8d8eb236db965718e 6731ab8681619682fbc5f9ac6d99fb800a7c1661 |
updateScriptto manually doyarn-berry-fetcher missing-hasheswhich is not handled bynix-updatemeta.changelogNote
I am hoping we can get rid of the manual
updateScriptfor this package (and some others) if Mic92/nix-update#640 is merged.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.nixpkgs-reviewresultGenerated using
nixpkgs-review.Command:
nixpkgs-review pr 541784Commit:
3c3785c5ca40a6889f0775b8062df53c774c4d43x86_64-linux✅ 1 package built: