-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
multiviewer-for-f1: add update script #336246
multiviewer-for-f1: add update script #336246
Conversation
Okay so my bad, I misread your lest message on the previous PR. I actually meant that you should have one commit for the version bump and one commit for the script inside one single PR. I should've been clearer with that too It doesn't matter though, this works as well! Anyways, this looks good to me, I don't have access to my NixOS desktop right now to test it but I don't see anything wrong |
I also figured unless the package is currently broken, the script can do the bump the next time the repo-wide update is triggered. |
Also I think you might have to change the PR name to something like |
Fixed |
link=$(echo $latest | jq -r '.downloads[] | select(.platform=="linux_deb").url') | ||
id=$(echo $latest | jq -r '.downloads[] | select(.platform=="linux_deb").id') | ||
version=$(echo $latest | jq -r '.version') | ||
|
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.
I think it would be good to skip the download if the version is already packaged. No need to wastefully download ~150MB.
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.
Fixed, thanks for the tip!
Checks if the version pulled from our metadata API is the same as the current version, preventing a pull of the package if an update is not necessary.
Please fix the merge conflict. |
…n/nixpkgs into multiviewer-for-f1-update-script
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.
Script should now check for current version to latest and omit the package pull and update if no update is necessary
link=$(echo $latest | jq -r '.downloads[] | select(.platform=="linux_deb").url') | ||
id=$(echo $latest | jq -r '.downloads[] | select(.platform=="linux_deb").id') | ||
version=$(echo $latest | jq -r '.version') | ||
|
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.
Fixed, thanks for the tip!
Why this is stucked and outdated? The multiview app is currently in v1.42.1 |
I've been waiting, as far as I know everything is taken care of. Would probably be faster to open a pull request for an update. |
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.
Still looks good to me
Merge this before my PR will break my PR I think. #391691 |
Description of changes
Add update script to multiviewer-for-f1 derivation
Possibly closes #336005
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-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.