Skip to content

Commit d1c0af0

Browse files
committed
Fix update.js to work when $GOROOT is a symlink.
1 parent bc5ba08 commit d1c0af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playground/update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ gopherjsgopath=$(go list -f '{{.Root}}' github.com/gopherjs/gopherjs)
2525
# Make a copy of GOROOT that is non-user-writable,
2626
# to prevent any GopherJS packages being written to it for now.
2727
echo "copying GOROOT from $(go env GOROOT) to $tmp/goroot"
28-
cp -a "$(go env GOROOT)" "$tmp/goroot"
28+
cp -a "$(go env GOROOT)/" "$tmp/goroot/"
2929
echo "making our copy of GOROOT non-user-writable for now"
3030
chmod -R -w "$tmp/goroot"
3131
export GOROOT="$tmp/goroot"

0 commit comments

Comments
 (0)