Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove remaining references to vendor/ #1427

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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' _ {} +