Skip to content

Commit

Permalink
Remove remaining references to vendor/
Browse files Browse the repository at this point in the history
The vendor directory was removed in 38a1feb, but it lives on in some
places (largely development/contribution and linting).  This change
removes those remaining references.

Signed-off-by: Chris Weyl <[email protected]>
  • Loading branch information
rsrchboy authored and imjasonh committed Oct 16, 2024
1 parent 93c0eda commit 903da57
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
fail_on_error: true
locale: "US"
exclude: |
./vendor/*
./.golangci.yaml
- uses: get-woke/woke-action-reviewdog@d71fd0115146a01c3181439ce714e21a69d75e31 # v0
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
ko

.DS_Store

/vendor/
2 changes: 0 additions & 2 deletions .wokeignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
vendor/**

# Uses some Cobra methods
pkg/commands/*
2 changes: 1 addition & 1 deletion hack/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
6 changes: 0 additions & 6 deletions hack/update-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' _ {} +

0 comments on commit 903da57

Please sign in to comment.