From 4a119141303407d9223296e9092611560665d3e1 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 19 Apr 2019 09:48:36 -0700 Subject: [PATCH] bootstrap.bash: make source writable before cleaning Otherwise the "git clean" command fails with errors like rm: cannot remove '/home/iant/go-linux-ppc64-bootstrap/pkg/mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/encoding/simplifiedchinese/all.go': Permission denied Change-Id: Iecfb1fed6d59819d7fdceb9e391a2b3f81ea620c Reviewed-on: https://go-review.googlesource.com/c/go/+/172998 Run-TryBot: Ian Lance Taylor Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/bootstrap.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap.bash b/src/bootstrap.bash index bc9d445345..92a4718286 100755 --- a/src/bootstrap.bash +++ b/src/bootstrap.bash @@ -49,6 +49,7 @@ cp -R "$src" "$targ" cd "$targ" echo echo "#### Cleaning $targ" +chmod -R +w . rm -f .gitignore if [ -e .git ]; then git clean -f -d -- 2.48.1