move-docs.sh: shellcheck 2166#130595
Conversation
|
please target staging |
|
Thank you for your review! |
You are rebuilding stdenv everytime. It shouldn't matter which branch you are targeting. Both master and staging will take some time to build. I think the only difference is the deps for the stdenv. |
|
I could be wrong here. It seems to me that the jobs targeting staging have a lower priority in the queue than the jobs targeting master. On another PR I am requesting the help from someone in the hydra team. I will make sure to confirm with them. |
4dc919e to
7fb0fb1
Compare
pkgs/stdenv/generic/setup.sh
Outdated
There was a problem hiding this comment.
Does it count as SC 2166 if the code you start with is already what shellcheck considers correct?
There was a problem hiding this comment.
You're right here. This was part of something else. Happy to revert.
There was a problem hiding this comment.
Not sure about something else, there are two more changes like this in this PR… (and one change that got converted from a true SC 2166 to a logic simplification)
There was a problem hiding this comment.
Yes, I would like to bring in the logic simplification part, I don't mind renaming the commit if you want.
I don't mind removing the [[ -> [.
Let me know what you think should be removed and I can have a look.
There was a problem hiding this comment.
I would expect logic simplification to be in a commit mentioning logic simplification, and [ to [[ conversion can happen, but then it should be called something about conditional style. I just don't think like having a commit called SC 2166 doing two different things, of which neither is actually a fix for SC 2166, is a good idea.
(Having a single commit with a long commit message is also fine — I just want to avoid an actively misleading commit title)
There was a problem hiding this comment.
Let me amend the commit message then.
There was a problem hiding this comment.
I've tried to be more descriptive, let me know if you still think it needs work.
There was a problem hiding this comment.
The original commit now looks a bit pointless… The rest is good, in my opinion
There was a problem hiding this comment.
yeah I missed it. Let me just squash those.
7fb0fb1 to
f23c4e0
Compare
remove impossible check for empty variable after it's been set twice
[ ... ] && [ ...] -> [[ ... && ... ]]
f23c4e0 to
bb482d5
Compare
Motivation for this change
This PR is in the series of stdenv shell improvements
commit from a reject PR commit a37fa9e
This is coming straight from the book shellcheck 2166
https://github.com/koalaman/shellcheck/wiki/SC2166
IMO it should be straightforward
I'm grouping this with another commit ebf3f62
Since those are very similar
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)