-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
writeShellApplication: allow substitutions and remote building. #222136
writeShellApplication: allow substitutions and remote building. #222136
Conversation
Thank you for your contribution, please read the CONTRIBUTING guide to change the target of this PR to staging without mass pinging everyone. In the meantime, I will convert it to draft. |
4acccdd
to
2273732
Compare
2273732
to
013a3dc
Compare
I did these in the wrong order and I now understand why you instructed me in that exact order 😅 Sorry to anyone who was pinged (maybe the draft status helped prevent notifications?). Anyways, I think I have everything fixed up, converting back to a regular PR. |
@andrewhamon This doesn't actually need to target staging, Please re-target to master, being careful not to create a mega-ping 😄 |
Unlike most other trivial builders, writeShellApplication has a relatively heavy checkphase that invokes shellcheck. On my system, a small writeShellApplication takes over 1 second to build. This PR allows substitutions and stops preferring local builds for writeShellApplication.
013a3dc
to
e929a99
Compare
Okay, mistakes were made again. I figured by now everything in staging would have worked its way to master. It wasn't quite a mega ping, but 25 commits worth. Lesson double-learned. (I did change to draft first, in case that reduces the notifications). |
It does reduce the notifications (for code owners) until our bot decides to mass ping everyone (even in draft mode) after ~5 minutes. But thank you for trying :) ! |
Description of changes
Unlike most other trivial builders, writeShellApplication has a relatively heavy checkphase that invokes shellcheck. On my system (m1 macbook pro), a small writeShellApplication takes over 1 second to build. It also causes shellcheck to be downloaded (or in some cases shellcheck must be built, on an a fresh and unlucky unstable commit) which also adds to the overhead (my measurements were with shellcheck already downloaded).
This PR allows substitutions and stops preferring local builds for writeShellApplication.
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/
)