Skip to content

Commit e2bc059

Browse files
author
Massimiliano Pippi
authored
Fix regression on compile and upload with attached sketches (arduino#545)
* fix regression on board attach * fix integration tests
1 parent 85a0273 commit e2bc059

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

cli/cli_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func TestCompileCommandsIntegration(t *testing.T) {
312312
// Build sketch without FQBN
313313
exitCode, d = executeWithArgs("compile", sketchPath)
314314
require.NotZero(t, exitCode)
315-
require.Contains(t, string(d), "required flag(s) \"fqbn\" not set")
315+
require.Contains(t, string(d), "no FQBN provided")
316316

317317
// Build sketch for arduino:avr:uno
318318
exitCode, d = executeWithArgs("compile", "-b", "arduino:avr:uno", sketchPath)

cli/compile/compile.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ func NewCommand() *cobra.Command {
7878
command.Flags().BoolVarP(&verify, "verify", "t", false, "Verify uploaded binary after the upload.")
7979
command.Flags().StringVar(&vidPid, "vid-pid", "", "When specified, VID/PID specific build properties are used, if boards supports them.")
8080

81-
command.MarkFlagRequired("fqbn")
82-
8381
return command
8482
}
8583

cli/upload/upload.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ func NewCommand() *cobra.Command {
5454
uploadCommand.Flags().BoolVarP(&verify, "verify", "t", false, "Verify uploaded binary after the upload.")
5555
uploadCommand.Flags().BoolVarP(&verbose, "verbose", "v", false, "Optional, turns on verbose mode.")
5656

57-
uploadCommand.MarkFlagRequired("fqbn")
5857
uploadCommand.MarkFlagRequired("port")
5958

6059
return uploadCommand

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy