Merge pull request #16039 from kkkkun/replace_gobin

replace gobin with go install
This commit is contained in:
Benjamin Wang 2023-06-10 07:03:44 +08:00 committed by GitHub
commit ffcde60e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 7 deletions

View File

@ -305,11 +305,6 @@ function tool_exists {
fi
}
# Ensure gobin is available, as it runs majority of the tools
if ! command -v "gobin" >/dev/null; then
run env GO111MODULE=off go get github.com/myitcv/gobin || exit 1
fi
# tool_get_bin [tool] - returns absolute path to a tool binary (or returns error)
function tool_get_bin {
local tool="$1"

View File

@ -44,7 +44,6 @@ WORKDIR ${GOPATH}/src/go.etcd.io/etcd
ADD ./scripts/install-marker.sh /tmp/install-marker.sh
RUN GO111MODULE=off go get github.com/myitcv/gobin
RUN /tmp/install-marker.sh amd64 \
&& rm -f /tmp/install-marker.sh \
&& curl -s https://codecov.io/bash >/codecov \

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
cd ./tools/mod || exit 2
go list --tags tools -f '{{ join .Imports "\n" }}' | xargs gobin -p
go list --tags tools -f '{{ join .Imports "\n" }}' | xargs go install