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
setup.sh: add dontConfigure #63520
setup.sh: add dontConfigure #63520
Conversation
@@ -1283,6 +1283,7 @@ genericBuild() { | |||
fi | |||
|
|||
for curPhase in $phases; do | |||
if [[ "$curPhase" = configurePhase && -n "${dontConfigure:-}" ]]; then continue; fi | |||
if [[ "$curPhase" = buildPhase && -n "${dontBuild:-}" ]]; then continue; fi |
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.
Perhaps we should have doBuild
, dontCheck
, etc. for completeness?
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.
Well we have doCheck
so there's this interesting use of polarities here.
I'm under the impression that doCheck
exists to enable because it's default skipped.
Other phases should not be skipped and be explicitly disabled otherwise.
So I'd think dontUnpack
would be the only other one to complete this.
If you don't mind I think I'll eliminate a lot of expressions doing
and use the proper |
@matthewbauer ping |
I'm not sure this is preferrable over |
I personally very much dislike doing that. Feels more intuitive to me for it actually to be skipped. Any opinion on the perception in #63520 (comment)? |
There's already 21 occurences of this and I've expected this to exist without knowing it had no affect for a while.
e856e0c
to
6d39013
Compare
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 prefer theses options over overriding phases. It is easier to read and documented over what unpackPhase = ":";
does. To people not so familiar with shell, it might be not clear what :
does.
0d5dcfe
to
3f4a353
Compare
Motivation for this change
People have been using
dontConfigure
in expressions expecting that it would disable theconfigurePhase
.Let's make this actually do something.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)