Skip to content

Commit

Permalink
add go vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
pixiake committed Aug 8, 2022
1 parent 2ef69c6 commit f6224d6
Show file tree
Hide file tree
Showing 7,332 changed files with 2,066,445 additions and 3 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ node_modules
package.json
yarn.lock

vendor
7 changes: 5 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ LDFLAGS="-X github.com/kubesphere/kubekey/version.version=${VERSION}
if [ -n "$1" ]; then
if [ "$1" == "-p" ] || [ "$1" == "--proxy" ]; then
# Using the most trusted Go module proxy in China
docker run --rm -e GO111MODULE=on -e GOPROXY=https://goproxy.cn -e CGO_ENABLED=0 -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.17 \
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export CGO_ENABLED=0
go build -tags='containers_image_openpgp' -ldflags "$LDFLAGS" -v -o output/kk ./cmd/main.go;
else
echo "The option should be '-p' or '--proxy'"
fi
else
docker run --rm -e CGO_ENABLED=0 -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.17 \
export CGO_ENABLED=0
export GO111MODULE=on
go build -tags='containers_image_openpgp' -ldflags "$LDFLAGS" -v -o output/kk ./cmd/main.go;
fi
202 changes: 202 additions & 0 deletions vendor/cloud.google.com/go/compute/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f6224d6

Please sign in to comment.