Skip to content

Commit

Permalink
Use unique names for link.txt files so they dont clash with each other
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Dec 24, 2024
1 parent 4916adc commit 3646655
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions noir-projects/noir-protocol-circuits/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ function try_cache_download {

# If not, try the link and the artifact pointed by it
if SKIP_LOCAL_CACHE_FILE=1 cache_download "$name-link" "$fallback_hash" 1>&2; then
local target_hash=$(cat link.txt)
rm link.txt
local target_hash=$(cat "$name-link.txt")
rm "$name-link.txt"
if cache_download $name $target_hash 1>&2; then
return 0
fi
Expand All @@ -93,9 +93,9 @@ function upload_symlink() {
local name=$1
local hash=$2
local fallback_hash=$3
echo "$hash" > link.txt
SKIP_LOCAL_CACHE_FILE=1 cache_upload "$name-link" "$fallback_hash" link.txt
rm link.txt
echo "$hash" > "$name-link.txt"
SKIP_LOCAL_CACHE_FILE=1 cache_upload "$name-link" "$fallback_hash" "$name-link.txt"
rm "$name-link.txt"
}

function compile {
Expand Down

0 comments on commit 3646655

Please sign in to comment.