Skip to content

Commit

Permalink
remove broken symlinks when updating deps
Browse files Browse the repository at this point in the history
fix: #2778
Change-Id: Id249c00fa8a506fbbd1d21956b8bfd62c12a9958
  • Loading branch information
erain committed Jan 3, 2019
1 parent 215ccde commit 42391c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/update-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ update_licenses third_party/VENDOR-LICENSE "./cmd/*"
# cherrypick of #66078. Remove this once that reaches a client version
# we have pulled in.
git apply ${REPO_ROOT_DIR}/hack/66078.patch

# 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 42391c9

Please sign in to comment.