-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
trivial-builders: use shellcheck instead of 'sh -n' #28001
Conversation
@evujumenuk, thanks for your PR! By analyzing the history of the files in this pull request, we identified @urkud, @Ericson2314 and @edolstra to be potential reviewers. |
for what it's worth, I'm not sure if anything actually uses |
Right. AFAIU this functionality is not yet used because it necessitates a mass rebuild (#19050). |
That's not a problem because then it just goes via staging. |
So, should this be merged into staging instead? |
Since nothing currently calls |
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'm not sure if introducing the entire haskell build closure as a dependency for this is a good idea.
I agree, the build tools should be kept minimal. Shellcheck looks great,
but it should be run at development time, not compile time. `sh -n` is
practically free.
…On Mon, Aug 7, 2017, 8:44 PM Daiderd Jordan ***@***.***> wrote:
***@***.**** commented on this pull request.
I'm not sure if introducing the entire haskell build closure as a
dependency for this is a good idea.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28001 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADWlpmFNSlzK2rvyr16FXbXTpS3uYrYks5sV1smgaJpZM4Ou6CN>
.
|
Yeah, as a |
Maybe I'm misunderstanding a thing or two about the whole 'mass rebuild' thingamajig, but #19050 is linked to from the Pending Mass Rebuilds page because it modifies The aforementioned PR was, in the end, merged to I could introduce another builder (e.g. Would this be an acceptable way forward? |
That's not really my point here, it's currently not used anywhere so this is indeed not a mass rebuild. However if people start using it (that's the point 😄) this will trigger rebuilds each time something in the haskell infrastructure changes. And if somebody doesn't know this it could even end up in the stdenv, etc. |
Forgive my ignorance, but wouldn't a separate builder with
Or am I missing something? |
Oh! If it's just intended for development, what about using |
Hm. Does that mean that one would have to supply an |
Hi there :) The
Then in
This patch can fix it:
The syntax error is detected:
Regards. |
Ping. What is the current status? |
Are there any updates on this pull request, please? |
Motivation for this change
shellcheck is a lot more comprehensive than
sh -n
, and I think the added dependency is worth the advantage of static analysis of all shell code included verbatim in.nix
files.Things done
Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers.
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)