-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
build-support: ShellCheck trivial builder output #149934
Conversation
Looks reasonable, but I highly doubt that it will just work. |
@KAction There's been a lot of discussion about variable quoting online, especially on Stack Overflow and the sister sites. Based on that it seems pretty clear that the expert consensus is that it's better to just always quote variables. |
For general scripts that is also right and correct but in nix we control the contents of certain variables like |
It looks like these are the choices:
What do you suggest? I'm sort of partial to introducing rules one by one, and I'm willing to help de-linting files en masse if there's a decent chance the result will be merged. |
I don't see how any of those address the rebuild and closure concerns? |
I've asked follow-up questions about that there, but didn't receive any answers. I'm just trying to move this forward. If anyone has suggestions for options 7 onwards (like adding a step in the PR template to please ShellCheck your scripts), feel free to suggest them. |
Sorry, misread you comment. |
TBH I just don't see this this approach moving forward. Adding It needs to be "external" check that we can run in PRs only e.g. add it to https://github.com/jtojnar/nixpkgs-hammering. Actually already mentioned in jtojnar/nixpkgs-hammering#1 |
Motivation for this change
#133088
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes@Artturin