mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
CI: Fix installing 'latest' tooling at runtime
Thanks to @Luap99 for the fix. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
8
Makefile
8
Makefile
@ -174,7 +174,7 @@ endif
|
||||
export GOOS GOARCH CGO_ENABLED BINSFX SRCBINDIR
|
||||
|
||||
define go-install
|
||||
$(GO) install ${1}@latest
|
||||
$(GO) install ${1}
|
||||
endef
|
||||
|
||||
# Need to use CGO for mDNS resolution, but cross builds need CGO disabled
|
||||
@ -856,7 +856,7 @@ install.tools: .install.goimports .install.gitvalidation .install.md2man .instal
|
||||
|
||||
.install.goimports: .gopathok
|
||||
if [ ! -x "$(GOBIN)/goimports" ]; then \
|
||||
$(call go-install,golang.org/x/tools/cmd/goimports); \
|
||||
$(call go-install,golang.org/x/tools/cmd/goimports@v0.1.10); \
|
||||
fi
|
||||
touch .install.goimports
|
||||
|
||||
@ -869,7 +869,7 @@ install.tools: .install.goimports .install.gitvalidation .install.md2man .instal
|
||||
.PHONY: .install.gitvalidation
|
||||
.install.gitvalidation: .gopathok
|
||||
if [ ! -x "$(GOBIN)/git-validation" ]; then \
|
||||
$(call go-install,github.com/vbatts/git-validation); \
|
||||
$(call go-install,github.com/vbatts/git-validation@v1.1.0); \
|
||||
fi
|
||||
|
||||
.PHONY: .install.golangci-lint
|
||||
@ -889,7 +889,7 @@ install.tools: .install.goimports .install.gitvalidation .install.md2man .instal
|
||||
.PHONY: .install.md2man
|
||||
.install.md2man: .gopathok
|
||||
if [ ! -x "$(GOMD2MAN)" ]; then \
|
||||
$(call go-install,github.com/cpuguy83/go-md2man); \
|
||||
$(call go-install,github.com/cpuguy83/go-md2man@v2.0.2); \
|
||||
fi
|
||||
|
||||
# $BUILD_TAGS variable is used in hack/golangci-lint.sh
|
||||
|
Reference in New Issue
Block a user