-
Notifications
You must be signed in to change notification settings - Fork 98
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
CI: Add a new workflow that tries to automatically update nix hashes #2871
Conversation
with #2761 adding even more fixed output derivations, this may be useful. If this works, maybe I’ll extract the `run` script here to a script in the repo that works offline just as well.
This seems to work, I suggest we get it into
|
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.
This needs some prose in the explanation otherwise I don't know what I am reviewing :-)
True; updated the PR description |
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.
Great addition! Thanks!
@nomeata will we merge this? |
No hurry, maybe better when I'm back from traveling. |
Looks like I lost my commit rights here too? Is that intentional? |
No way. What are the symptoms you see? E.g. unable to resolve the conflict? |
nix/nix-update.nix
Outdated
@@ -0,0 +1,36 @@ | |||
{ lib |
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.
ditto: nixpkgs-21.11
has this
I can't commit your suggestions, please apply yourself |
@nomeata, I just added you to the repo. Maybe it just happened to work earlier because you were member of the Dfinity core team? |
No, I lost that membership months ago, and were manually added to this repo and ic-hs. I assume it was some over-eager security team person or script? Thanks for adding me back. |
A JIRA is open to add back the commit bit. |
Andreas already took care of it for motoko, so ic-hs is still missing |
this is in `nixpkgs-21.11`
@nomeata the action sez: Resolved: |
needs `nix-command` as experimental
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.
This looks like ready for the heavy-duty!
@nomeata you have both bits back :-) Sorry for the grievances!
|
Thanks for quick fixing :-) |
Usually, when we upgrade some dependencies, we have to manually update the hashes. This involves
The
nix-update
tool can automate that.This PR makes Github do that on all pushes (even to feature branches), and if needed, push a fix to that branch.
With #2761 adding even more fixed output derivations, this may be more relevant.