Skip to content

Commit 62fcdcd

Browse files
dmitshurgopherbot
authored andcommitted
env/darwin: delete binary before redownloading it
When a new buildlet version becomes available and gets downloaded, we don't want the previous file attributes to persist, since that can cause the new binary to get killed at startup. Delete the old file before downloading a new one to avoid such problems. Also sleep a bit longer so output is easier to read. Change-Id: Id4d95e42c033e82377b9eef636fa6a154af6cb54 Reviewed-on: https://go-review.googlesource.com/c/build/+/419980 Auto-Submit: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent f59aefc commit 62fcdcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

env/darwin/setup-notes.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,13 @@ set -x
5050
5151
mkdir -p ~/go/bin;
5252
while true; do
53+
rm -f ~/go/bin/buildlet
5354
url="https://storage.googleapis.com/go-builder-data/buildlet.darwin-arm64"
5455
while ! curl -f -o ~/go/bin/buildlet "$url"; do
5556
echo
5657
echo "curl failed to fetch $url"
5758
echo "Sleeping before retrying..."
58-
sleep 2
59+
sleep 5
5960
done
6061
chmod +x ~/go/bin/buildlet
6162

0 commit comments

Comments
 (0)