Skip to content

Commit db21b96

Browse files
committed
Improve command to install tools
1 parent 482ad31 commit db21b96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ scripts/vendor: scripts/jsonnetfile.json scripts/jsonnetfile.lock.json
150150

151151
install-tools:
152152
@echo Installing tools from tools.go
153-
@cd tools && cat tools.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go get %
154-
@cd tools && cat tools.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go install %
153+
grep '^\s*_' tools/tools.go | awk '{print $$2}' | xargs -tI % go install -mod=readonly -modfile=tools/go.mod %
155154

156155
install-promtool:
157156
@echo Installing promtool

0 commit comments

Comments
 (0)