diff --git a/Taskfile.yml b/Taskfile.yml index 9f8d56f4f09..9bcd25668bb 100755 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -219,12 +219,23 @@ tasks: test-legacy: desc: Run tests for the `legacy` package cmds: - - go test {{ default "-v -failfast" .GOFLAGS }} -coverprofile=coverage_legacy.txt ./legacy/... + - | + go test \ + {{ default "-v -failfast" .GOFLAGS }} \ + -coverprofile=coverage_legacy.txt \ + ./legacy/... \ + {{.TEST_LDFLAGS}} test-unit-race: desc: Run unit tests only with race condition detection cmds: - - go test -short -race {{ default "-v" .GOFLAGS }} -coverprofile=coverage_race_unit.txt {{ default .DEFAULT_GO_PACKAGES .TARGETS }} + - | + go test \ + -short \ + -race {{ default "-v" .GOFLAGS }} \ + -coverprofile=coverage_race_unit.txt \ + {{ default .DEFAULT_GO_PACKAGES .TARGETS }} \ + {{.TEST_LDFLAGS}} check: desc: Check fmt and lint, `legacy` will be skipped diff --git a/go.mod b/go.mod index 107ca6b64c0..f8ecb4d15b1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/arduino/arduino-cli -go 1.14 +go 1.16 require ( github.com/arduino/board-discovery v0.0.0-20180823133458-1ba29327fb0c diff --git a/go.sum b/go.sum index 9977b9fb416..1a58de9cf6d 100644 --- a/go.sum +++ b/go.sum @@ -70,7 +70,6 @@ github.com/fluxio/iohelpers v0.0.0-20160419043813-3a4dd67a94d2 h1:C6sOwknxwWfLBE github.com/fluxio/iohelpers v0.0.0-20160419043813-3a4dd67a94d2/go.mod h1:c7sGIpDbBo0JZZ1tKyC1p5smWf8QcUjK4bFtZjHAecg= github.com/fluxio/multierror v0.0.0-20160419044231-9c68d39025e5 h1:R8jFW6G/bjoXjWPFrEfw9G5YQDlYhwV4AC+Eonu6wmk= github.com/fluxio/multierror v0.0.0-20160419044231-9c68d39025e5/go.mod h1:BEUDl7FG1cc76sM0J0x8dqr6RhiL4uqvk6oFkwuNyuM= -github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=