Skip to content

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

Merged
merged 1 commit into from
Aug 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Correct key name in arduino-cli compile --dump-profile output
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.
  • Loading branch information
per1234 committed Aug 23, 2022
commit 740d0f77404c6c71102f68c1610deb1744199b81
2 changes: 1 addition & 1 deletion cli/compile/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
newProfileName = split[2]
}
fmt.Println()
fmt.Println("profile:")
fmt.Println("profiles:")
fmt.Println(" " + newProfileName + ":")
fmt.Println(" fqbn: " + compileRequest.GetFqbn())
fmt.Println(" platforms:")
Expand Down