Skip to content

Commit 224ea31

Browse files
gregwebsngaut
authored andcommitted
Vendor include all legal files (#7480)
1 parent db873d6 commit 224ea31

File tree

14 files changed

+143
-205
lines changed

14 files changed

+143
-205
lines changed

hack/clean_vendor.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
find vendor \( -type f -or -type l \) -not -name "*.go" -not -name "LICENSE" -not -name "*.s" -not -name "PATENTS" -not -name "*.h" -not -name "*.c" | xargs -I {} rm {}
2-
# delete all test files
1+
# delete internal vendor folders
2+
find vendor -type d -name "_vendor" | xargs -I {} rm -r {}
3+
# delete all files that are not go, c, h, or legal
4+
find vendor -type f -not -name "*.go" -not -name "NOTICE*" -not -name "COPYING*" -not -name "LICENSE*" -not -name "*.s" -not -name "PATENTS*" -not -name "*.h" -not -name "*.c" | xargs -I {} rm {}
5+
# delete all generated files
36
find vendor -type f -name "*_generated.go" | xargs -I {} rm {}
7+
# delete all test files
48
find vendor -type f -name "*_test.go" | xargs -I {} rm {}
5-
find vendor -type d -name "_vendor" | xargs -I {} rm -rf {}
6-
find vendor -type d -empty | xargs -I {} rm -rf {}
9+
find vendor -type d -name "fixtures" | xargs -I {} rm -r {}
10+
# Delete documentation files. Keep doc.go.
11+
find vendor -type d -name "Documentation" | xargs -I {} rm -r {}
12+
find vendor -type d -name "tutorial" | xargs -I {} rm -r {}
13+
find vendor -name "*.md" | xargs -I {} rm {}
14+
# Delete unused languages
15+
find vendor -type d -name "ruby" | xargs -I {} rm -r {}

vendor/github.com/BurntSushi/toml/COPYING

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/BurntSushi/toml/cmd/toml-test-decoder/COPYING

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/BurntSushi/toml/cmd/toml-test-encoder/COPYING

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/BurntSushi/toml/cmd/tomlv/COPYING

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/apache/thrift/NOTICE

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/apache/thrift/lib/dart/LICENSE_HEADER

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/coreos/etcd/NOTICE

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/matttproud/golang_protobuf_extensions/NOTICE

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/prometheus/client_golang/NOTICE

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)