Skip to content

Commit

Permalink
fix: remove tmp/vendor.v1.tgz to ensure that it will work always
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Oct 12, 2019
1 parent 6b37d47 commit 0a3c076
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,13 @@ function download_vendor_archive {
archive_name="vendor.v1.tgz"
archive_download_url="https://storage.googleapis.com/kubebuilder-vendor/$archive_name"
archive_path="$tmp_root/$archive_name"
if [ ! -f $archive_path ]; then
header_text "downloading vendor archive $archive_path"
curl -sL ${archive_download_url} -o "$archive_path"
header_text "checking the path $archive_path to download the $archive_name"
if [ -f $archive_path ]; then
header_text "removing file which exists"
rm $archive_path
fi
header_text "downloading vendor archive from $archive_download_url"
curl -sL ${archive_download_url} -o "$archive_path"
}

function restore_go_deps {
Expand Down

0 comments on commit 0a3c076

Please sign in to comment.