From 740d0f77404c6c71102f68c1610deb1744199b81 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 22 Aug 2022 22:05:26 -0700 Subject: [PATCH] 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. --- cli/compile/compile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/compile/compile.go b/cli/compile/compile.go index d6aa2a8880f..2ffddd15d18 100644 --- a/cli/compile/compile.go +++ b/cli/compile/compile.go @@ -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:")