From 8aba26105be62492892223abdcacfba7a300eb3e Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Wed, 2 Oct 2024 12:41:37 -0500 Subject: [PATCH] Remove remaining references to `vendor/` The vendor directory was removed in 38a1feb0, but it lives on in some places (largely development/contribution and linting). This change removes those remaining references. Signed-off-by: Chris Weyl --- .github/workflows/style.yaml | 1 - .gitignore | 2 ++ .wokeignore | 2 -- hack/presubmit.sh | 2 +- hack/update-codegen.sh | 1 - hack/update-deps.sh | 6 ------ 6 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index 5d661186d8..a200c803da 100644 --- a/.github/workflows/style.yaml +++ b/.github/workflows/style.yaml @@ -58,7 +58,6 @@ jobs: fail_on_error: true locale: "US" exclude: | - ./vendor/* ./.golangci.yaml - uses: get-woke/woke-action-reviewdog@d71fd0115146a01c3181439ce714e21a69d75e31 # v0 diff --git a/.gitignore b/.gitignore index 2d8e0e742f..926ca3e1a0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ ko .DS_Store + +/vendor/ diff --git a/.wokeignore b/.wokeignore index a7ed61ad9e..cb8574b553 100644 --- a/.wokeignore +++ b/.wokeignore @@ -1,4 +1,2 @@ -vendor/** - # Uses some Cobra methods pkg/commands/* diff --git a/hack/presubmit.sh b/hack/presubmit.sh index cef7b6574d..d7e0dfe50c 100755 --- a/hack/presubmit.sh +++ b/hack/presubmit.sh @@ -24,7 +24,7 @@ pushd "${PROJECT_ROOT}" trap popd EXIT # Verify that all source files are correctly formatted. -find . -name "*.go" | grep -v vendor/ | xargs gofmt -d -e -l +find . -name "*.go" -exec gofmt -d -e -l {} + # Verify that generated Markdown docs are up-to-date. tmpdir=$(mktemp -d) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 13ce9d50b0..79c8224444 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -24,6 +24,5 @@ pushd ${PROJECT_ROOT} trap popd EXIT go mod tidy -go mod vendor go run $PROJECT_ROOT/cmd/help/main.go --dir=$PROJECT_ROOT/docs/reference/ diff --git a/hack/update-deps.sh b/hack/update-deps.sh index ddc790ce07..778db39ac8 100755 --- a/hack/update-deps.sh +++ b/hack/update-deps.sh @@ -24,9 +24,3 @@ pushd ${PROJECT_ROOT} trap popd EXIT go mod tidy -go mod vendor - -# Delete all vendored broken symlinks. -# From https://stackoverflow.com/questions/22097130/delete-all-broken-symbolic-links-with-a-line -find vendor/ -type l -exec sh -c 'for x; do [ -e "$x" ] || rm "$x"; done' _ {} + -