Skip to content

Commit 9478b28

Browse files
committed
Use standardized taskfile variable name for Go packages list
This is the variable name used by the Tooling team's template tasks.
1 parent a1a79f9 commit 9478b28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Taskfile.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tasks:
2828
go:test-unit:
2929
desc: Run unit tests
3030
cmds:
31-
- go test -short -run '{{ default ".*" .TEST_REGEX }}' {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default .DEFAULT_PACKAGES .PACKAGES }}
31+
- go test -short -run '{{ default ".*" .TEST_REGEX }}' {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default .DEFAULT_GO_PACKAGES .GO_PACKAGES }}
3232

3333
test-integration:
3434
desc: Run integration tests
@@ -80,7 +80,7 @@ tasks:
8080
go:vet:
8181
desc: Check for errors in Go code
8282
cmds:
83-
- go vet {{default .DEFAULT_PACKAGES .PACKAGES}}
83+
- go vet {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
8484

8585
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
8686
go:fix:
@@ -108,7 +108,7 @@ tasks:
108108
go:format:
109109
desc: Format Go code
110110
cmds:
111-
- go fmt {{default .DEFAULT_PACKAGES .PACKAGES}}
111+
- go fmt {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
112112

113113
python:check:
114114
cmds:
@@ -277,7 +277,7 @@ tasks:
277277
vars:
278278
PROJECT_NAME: "arduino-lint"
279279
DIST_DIR: "dist"
280-
DEFAULT_PACKAGES:
280+
DEFAULT_GO_PACKAGES:
281281
sh: echo `go list ./... | tr '\n' ' '`
282282
# build vars
283283
COMMIT:

0 commit comments

Comments
 (0)