Skip to content

Commit b485f05

Browse files
committed
Fix permission on host
Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent 436d507 commit b485f05

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

images/extension-builders/tinygo/commands.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@
1616

1717
extension_build() {
1818
tinygo build -o "$1" -scheduler=none -target wasi main.go
19+
# This is necessary since the created go caches are with read-only permission,
20+
# and without this, the host user cannot delete the build directory with "rm -rf".
21+
chmod -R a+rw build/
1922
}
2023

2124
extension_test() {
2225
go test -tags=proxytest -v ./...
26+
# This is necessary since the created go caches are with read-only permission,
27+
# and without this, the host user cannot delete the build directory with "rm -rf".
28+
chmod -R a+rw build/
2329
}
2430

2531
extension_clean() {
26-
go clean -modcache
27-
rm -rf "${GOCACHE}" "${XDG_CACHE_HOME}" || true
32+
rm -rf build
2833
}

0 commit comments

Comments
 (0)