-
-
Notifications
You must be signed in to change notification settings - Fork 422
Correct key name in arduino-cli compile --dump-profile
output
#1846
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
Conversation
The `--dump-profile` flag causes Arduino CLI to print the board and sketch dependencies of that compilation as a YAML document. This could be copied into a "sketch project file" for later use as a "build profile" specified via the `--profile` flag. A typo in the `profiles` key name caused the generated "build profile" entry to not be recognized when added to a "sketch project file". The key name is hereby corrected.
Codecov Report
@@ Coverage Diff @@ ## master #1846 +/- ## ========================================== - Coverage 36.33% 36.28% -0.05% ========================================== Files 232 232 Lines 19496 19496 ========================================== - Hits 7083 7074 -9 - Misses 11585 11592 +7 - Partials 828 830 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This indicates to me that the existing dedicated infrastructure for printing build profiles should be used instead of duplicating what is already hacky code all over again specifically for use with the --dump-profile flag:
Agreed, would you like to give it a try? I'll merge this PR in the meantime to fix the bug.
would you like to give it a try?
Yes. I had already jotted it down on my "to do" list.
The key name is hereby corrected.
Please check if the PR fulfills these requirements
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)What kind of change does this PR introduce?
Bug fix
What is the current behavior?
The
--dump-profile
flag causes Arduino CLI to print the board and sketch dependencies of that compilation as a YAML document. This could be copied into a "sketch project file" for later use as a "build profile" specified via the--profile
flag.A typo in the
profiles
key name caused the generated "build profile" entry to not be recognized when added to a "sketch project file":What is the new behavior?
The
arduino-cli compile --dump-profile
output uses the valid key nameprofiles
.Does this PR introduce a breaking change, and is titled accordingly?
No breaking change.
Other information
Originally reported at https://forum.arduino.cc/t/dump-profile-error/1024698
This indicates to me that the existing dedicated infrastructure for printing build profiles should be used instead of duplicating what is already hacky code all over again specifically for use with the
--dump-profile
flag:arduino-cli/arduino/sketch/profiles.go
Line 56 in f43c9ec