Skip to content

Commit 4bf9bf4

Browse files
committed
Use go install to install code generation tools
The new paradigm from Go is to use `go get` exclusively for maintaining project module dependencies with the newly introduced `go install` used for applications such as the tool installations.
1 parent 4b9f0d5 commit 4bf9bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Taskfile.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ tasks:
5353
go:generate:
5454
desc: Generate Go code
5555
cmds:
56-
- go get -u "github.com/go-bindata/go-bindata/[email protected]"
56+
- go install "github.com/go-bindata/go-bindata/[email protected]"
5757
- go-bindata -nocompress -nometadata -o "./internal/rule/schema/schemadata/bindata.go" --pkg schemadata --prefix "./etc/schemas/" "./etc/schemas/"
5858
- go-bindata -nocompress -nometadata -o "./internal/rule/schema/testdata/bindata.go" --pkg testdata --prefix "./internal/rule/schema/testdata/input/" "./internal/rule/schema/testdata/input/"
59-
- go get -u golang.org/x/tools/cmd/[email protected]
59+
- go install golang.org/x/tools/cmd/[email protected]
6060
- go generate ./...
6161
- task: go:format
6262

0 commit comments

Comments
 (0)