Skip to content

Commit

Permalink
feat: remove vendor usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bcho committed Apr 28, 2024
1 parent 146e039 commit 83bf561
Show file tree
Hide file tree
Showing 5,458 changed files with 9 additions and 1,822,901 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,8 @@ lint: $(BUILD_DIRS)
-v $$(pwd)/.go/cache:/.cache \
--env HTTP_PROXY=$(HTTP_PROXY) \
--env HTTPS_PROXY=$(HTTPS_PROXY) \
--env GO111MODULE=on \
--env GOFLAGS="-mod=vendor" \
$(BUILD_IMAGE) \
golangci-lint run --enable $(ADDTL_LINTERS) --deadline=10m --skip-files="generated.*\.go$\" --skip-dirs-use-default --skip-dirs=client,vendor
golangci-lint run --enable $(ADDTL_LINTERS) --deadline=10m --skip-files="generated.*\.go$\" --skip-dirs-use-default --skip-dirs=client

$(BUILD_DIRS):
@mkdir -p $@
Expand All @@ -335,8 +333,7 @@ verify: verify-gen verify-modules

.PHONY: verify-modules
verify-modules:
GO111MODULE=on go mod tidy
GO111MODULE=on go mod vendor
go mod tidy
@if !(git diff --exit-code HEAD); then \
echo "go module files are out of date"; exit 1; \
fi
Expand All @@ -358,7 +355,7 @@ add-license:
--env HTTP_PROXY=$(HTTP_PROXY) \
--env HTTPS_PROXY=$(HTTPS_PROXY) \
$(BUILD_IMAGE) \
ltag -t "./hack/license" --excludes "vendor contrib" -v
ltag -t "./hack/license" --excludes "contrib" -v

.PHONY: check-license
check-license:
Expand All @@ -371,7 +368,7 @@ check-license:
--env HTTP_PROXY=$(HTTP_PROXY) \
--env HTTPS_PROXY=$(HTTPS_PROXY) \
$(BUILD_IMAGE) \
ltag -t "./hack/license" --excludes "vendor contrib" --check -v
ltag -t "./hack/license" --excludes "contrib" --check -v

.PHONY: ci
ci: verify check-license lint build unit-tests #cover
Expand Down
3 changes: 1 addition & 2 deletions hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ fi
export CGO_ENABLED=0
export GOARCH="${ARCH}"
export GOOS="${OS}"
export GO111MODULE=on
export GOFLAGS="-mod=vendor"
export GOFLAGS=""

go install \
-installsuffix "static" \
Expand Down
2 changes: 1 addition & 1 deletion hack/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pushd $REPO_ROOT

echo "" >coverage.txt

for d in $(go list ./... | grep -v -e vendor -e test); do
for d in $(go list ./... | grep -v -e test); do
go test -v -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >>coverage.txt
Expand Down
3 changes: 1 addition & 2 deletions hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
set -eou pipefail

export CGO_ENABLED=0
export GO111MODULE=on
export GOFLAGS="-mod=vendor"
export GOFLAGS=""

GINKGO_ARGS=${GINKGO_ARGS:-}
TEST_ARGS=${TEST_ARGS:-}
Expand Down
3 changes: 1 addition & 2 deletions hack/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
set -eou pipefail

export CGO_ENABLED=0
export GO111MODULE=on
export GOFLAGS="-mod=vendor"
export GOFLAGS=""

TARGETS="$@"

Expand Down
3 changes: 1 addition & 2 deletions hack/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
set -eou pipefail

export CGO_ENABLED=1
export GO111MODULE=on
export GOFLAGS="-mod=vendor"
export GOFLAGS=""

TARGETS=$(for d in "$@"; do echo ./$d/...; done)

Expand Down
5 changes: 0 additions & 5 deletions vendor/cloud.google.com/go/compute/metadata/CHANGES.md

This file was deleted.

202 changes: 0 additions & 202 deletions vendor/cloud.google.com/go/compute/metadata/LICENSE

This file was deleted.

27 changes: 0 additions & 27 deletions vendor/cloud.google.com/go/compute/metadata/README.md

This file was deleted.

Loading

0 comments on commit 83bf561

Please sign in to comment.