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
mission-planner: init at version 1.3.74 #107545
Conversation
21e6f9f
to
4df24d3
Compare
@GrahamcOfBorg build mission-planner |
for file in $AOT_FILES | ||
do |
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.
for file in $AOT_FILES | |
do | |
for file in $AOT_FILES; do |
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.
What is the rational here? What makes one better than the other in you point of view?
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.
It uses one line less and is just a common thing I do.
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 GNU C style, and similar to that, I think having the loop bodies opening symbol in the next line makes the code more readable.
|
||
installPhase = '' | ||
# create target directoryies | ||
mkdir -p $out/{bin,opt/mission-planner} |
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.
mkdir -p $out/{bin,opt/mission-planner} | |
mkdir -p $out/bin $out/opt/mission-planner |
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.
Why is more repetition better?
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.
Using {..,..}
is nice if only a small part of a path changes like the last directory in a 5 deep nested path. I don't think it makes the code more readable if $out/
is the only repeating part.
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 disagree on this one as well, but it likely boils down to personal preference. Is it a pressing issue to you having this changed?
4df24d3
to
b02f01f
Compare
Result of 1 package built:
|
There's an editorconfig issue also. |
Result of 1 package built:
|
b02f01f
to
63533a4
Compare
@SuperSandro2000 @doronbehar Thank you two for the feedback so far, I adjusted some of the issues you mentioned. Hope it works out now! |
63533a4
to
09b7585
Compare
09b7585
to
72cf730
Compare
72cf730
to
54c2534
Compare
Result of 1 package built:
|
Motivation for this change
Configuring my Ardupilot FC
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)