Skip to content

Commit

Permalink
Adapt hack/check-skaffold-deps-for-binary.sh to support extensions …
Browse files Browse the repository at this point in the history
…with a vendor dir
  • Loading branch information
ialidzhikov committed Nov 24, 2023
1 parent 4482e68 commit 2802643
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/check-skaffold-deps-for-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ go list -f '{{ join .Deps "\n" }}' "./cmd/$binary_name" |\

# always add VERSION file
echo "VERSION" >> "$path_actual_dependencies"
# add vendor if the vendor/ dir exists
if [[ -d "$repo_root/vendor" ]]; then
echo "vendor" >> "$path_actual_dependencies"
fi

# sort dependencies
sort -fo "$path_current_skaffold_dependencies"{,}
Expand Down

0 comments on commit 2802643

Please sign in to comment.