clear_vendor.sh 425 B

123456
  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
  3. find vendor -type f -name "*_generated.go" | xargs -I {} rm {}
  4. 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 {}