dprint-plugins: update all plugins#453928
Conversation
|
c051563 to
9dfcd8a
Compare
9716f51 to
f565fde
Compare
| @@ -1,5 +1,5 @@ | |||
| #!/usr/bin/env nix-shell | |||
| #!nix-shell -i python -p nix 'python3.withPackages (pp: [ pp.requests ])' | |||
| #!nix-shell --pure -i python3 -p nix cacert nixfmt-rfc-style 'python3.withPackages (ps: [ ps.requests ])' | |||
There was a problem hiding this comment.
We removed nixfmt from update script shebangs on purpose, because this is not sufficient in the general case.
You are expected to be in a nix-shell session with treefmt / nixfmt (with the correct configuration!) available, to run update scripts.
See #433588 and the related PRs.
| #!nix-shell --pure -i python3 -p nix cacert nixfmt-rfc-style 'python3.withPackages (ps: [ ps.requests ])' | |
| #!nix-shell --pure -i python3 -p nix cacert 'python3.withPackages (ps: [ ps.requests ])' |
There was a problem hiding this comment.
(although I am not sure how this interacts with r-ryantm's auto-updates, tbh...)
There was a problem hiding this comment.
Should we also remove the --pure flag here?
> nix-shell maintainers/scripts/update.nix --argstr package dprint-plugins.g-plane-pretty_yaml
Going to be running update for following packages:
- g-plane-pretty_yaml-0.5.1
Press Enter key to continue...
Running update for:
Enqueuing group of 1 packages
- g-plane-pretty_yaml-0.5.1: UPDATING ...
- g-plane-pretty_yaml-0.5.1: ERROR
--- SHOWING ERROR LOG FOR g-plane-pretty_yaml-0.5.1 ----------------------
path is '/nix/store/j9k82k78jpb2jcdk38zqd4m96fz0gafk-typescript-0.95.11.wasm'
/nix/store/cfqbabpc7xwg8akbcchqbq3cai6qq2vs-bash-5.2p37/bin/sh: line 1: nixfmt: command not found
error: writing to file: Broken pipe
Traceback (most recent call last):
There was a problem hiding this comment.
So, removing nixfmt from the update script will not fix the issue the current pr is trying to address.
Because I don't see why gplane* plugins in the dprint plugins folder haven't received updates via r-ryantm apart from missing nixfmt.
There was a problem hiding this comment.
Could this be merged for now? I will manually update these from now on if auto-updates don't work. Or maybe raise an issue at r-ryantm's repo.
There was a problem hiding this comment.
why gplane* plugins in the dprint plugins folder haven't received updates via r-ryantm
I suspect the condition is whether Replogy has another repository, like AUR, for the plugin.
The blue mark means nixpkgs is the only one repository.
https://nixpkgs-update-logs.nix-community.org/
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com> dprint-plugins: fix update script Co-authored-by: Kenichi Kamiya <kachick1@gmail.com> Co-authored-by: Wolfgang Walther <walther@technowledgy.de> Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
96b02b7 to
cad32a2
Compare
|
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-25.05
git worktree add -d .worktree/backport-453928-to-release-25.05 origin/release-25.05
cd .worktree/backport-453928-to-release-25.05
git switch --create backport-453928-to-release-25.05
git cherry-pick -x cad32a24812b17a574b1ce57a7885dd4459f9f4a |
There was an issue with the update script preventing some packages from getting updated. Fixed it and updated all the plugins.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.