File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ MODULES = $(shell find . -name 'go.mod' -print)
88
99.PHONY : api
1010api :
11- (which swagger || go install github.com/go-swagger/go-swagger/cmd/swagger@v0.27.0)
11+ (which swagger || go run github.com/go-swagger/go-swagger/cmd/swagger@v0.27.0)
1212 $(GOPATH ) /bin/swagger generate spec -m -w api/kptfile/v1 -o ../openapi/kptfile.yaml
1313
1414.PHONY : fix
@@ -23,7 +23,7 @@ fmt: $(MODULES)
2323lint : $(MODULES )
2424 @for f in $(^D ) ; do \
2525 (cd $$ f; echo " Checking golangci-lint $$ f" ; \
26- (which $( GOPATH) /bin/golangci-lint || go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1); \
26+ (which $( GOPATH) /bin/golangci-lint || go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1); \
2727 $(GOPATH ) /bin/golangci-lint run ./...); \
2828 done
2929
Original file line number Diff line number Diff line change 1616
1717# don't add licenses to the site directory, it will break the docs
1818# and will add them to the theme which is a submodule (bad)
19- command -v addlicense || go install github.com/google/addlicense@v1.0.0
19+ command -v addlicense || go run github.com/google/addlicense@v1.0.0
2020# - `addlicense` skips the .yaml files (specifically for golden test _expected.yaml) to avoid the conflict where
2121# the `addlicense` adds unexpected license header that fails the golden tests diff-comparison in _expected.yaml.
2222# - the [0-9a-z] is a trick to avoid using `**/**/*.yaml` directly which hits the shellcheck SC2035. SC2035 only accepts
You can’t perform that action at this time.
0 commit comments