mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +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
|
export GOOS GOARCH CGO_ENABLED BINSFX SRCBINDIR
|
||||||
|
|
||||||
define go-install
|
define go-install
|
||||||
$(GO) install ${1}@latest
|
$(GO) install ${1}
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Need to use CGO for mDNS resolution, but cross builds need CGO disabled
|
# 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
|
.install.goimports: .gopathok
|
||||||
if [ ! -x "$(GOBIN)/goimports" ]; then \
|
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
|
fi
|
||||||
touch .install.goimports
|
touch .install.goimports
|
||||||
|
|
||||||
@ -869,7 +869,7 @@ install.tools: .install.goimports .install.gitvalidation .install.md2man .instal
|
|||||||
.PHONY: .install.gitvalidation
|
.PHONY: .install.gitvalidation
|
||||||
.install.gitvalidation: .gopathok
|
.install.gitvalidation: .gopathok
|
||||||
if [ ! -x "$(GOBIN)/git-validation" ]; then \
|
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
|
fi
|
||||||
|
|
||||||
.PHONY: .install.golangci-lint
|
.PHONY: .install.golangci-lint
|
||||||
@ -889,7 +889,7 @@ install.tools: .install.goimports .install.gitvalidation .install.md2man .instal
|
|||||||
.PHONY: .install.md2man
|
.PHONY: .install.md2man
|
||||||
.install.md2man: .gopathok
|
.install.md2man: .gopathok
|
||||||
if [ ! -x "$(GOMD2MAN)" ]; then \
|
if [ ! -x "$(GOMD2MAN)" ]; then \
|
||||||
$(call go-install,github.com/cpuguy83/go-md2man); \
|
$(call go-install,github.com/cpuguy83/go-md2man@v2.0.2); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# $BUILD_TAGS variable is used in hack/golangci-lint.sh
|
# $BUILD_TAGS variable is used in hack/golangci-lint.sh
|
||||||
|
Reference in New Issue
Block a user