Skip to content

Commit 897f00d

Browse files
committed
nit: replace to
1 parent 96175a6 commit 897f00d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

go/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ MODULES = $(shell find . -name 'go.mod' -print)
88

99
.PHONY: api
1010
api:
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)
2323
lint: $(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

go/hack/update-license.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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

0 commit comments

Comments
 (0)