versionCheckHook: add versionCheckDontIgnoreEnvironment parameter#403971
versionCheckHook: add versionCheckDontIgnoreEnvironment parameter#403971drupol merged 3 commits intoNixOS:stagingfrom
versionCheckDontIgnoreEnvironment parameter#403971Conversation
versionCheckIgnoreEnvironment parameterversionCheckDontIgnoreEnvironment parameter
|
I think it would be great if there was an option to specify a list of environment variables to pass to the version command (e.g. only Also, it looks like this PR should go to staging 😉 |
|
I don't think this is possible with |
|
There doesn't seem to be a flag in
Sure, this is already a really nice improvement! |
435be41 to
0508dca
Compare
89c6899 to
44b6bf8
Compare
|
I would like to see a version with whitelisted/passed env vars, but I agree this is a good improvement in meantime. |
This parameter is set to `true` by default to make sure that the current behaviour of the hook is not altered. When explicitly set to `false`, the flag `--ignore-environment` will not be added to the `env` command.
eihqnh
left a comment
There was a problem hiding this comment.
Cool.When can this be merged?
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin staging-24.11
git worktree add -d .worktree/backport-403971-to-staging-24.11 origin/staging-24.11
cd .worktree/backport-403971-to-staging-24.11
git switch --create backport-403971-to-staging-24.11
git cherry-pick -x a4b5a2ce4a5c6b88cabe1b2d444a5b06d4664ebb d28271d7ef04ec3caad2e9a244c2eb06ea48bd7a c3b3bec2cba1df1180b1d5e6a9197683881ce668 |
|
This parameter is set to
falseby default to make sure that the current hook behaviour is not altered.When explicitly set to
true, the flag--ignore-environmentwill not be added to theenvcommand.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.