Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use container in GitHub Action #32

Open
lburgazzoli opened this issue Apr 22, 2024 · 0 comments
Open

Unable to use container in GitHub Action #32

lburgazzoli opened this issue Apr 22, 2024 · 0 comments

Comments

@lburgazzoli
Copy link

I'm experiencing the very same issue as #23.

I have the following script:

docker run \
    --rm \
    --user "$(id -u):$(id -g)" \
    --volume "${PROJECT_ROOT}":/src:Z \
    --workdir /src \
    tinygo/tinygo:"${TINYGO_VERSION}" \
    tinygo build \
        -target=wasi \
        -scheduler=none \
        -o "${OUT}" \
        "${IN}"

If I run it on my local mac (m1), I get:

➜ TINYGO_VERSION=0.31.2 ./build_wasm.sh ${PWD}  etc/wasm/fn/simple_process.go etc/wasm/fn/simple_process.wasm
error: mkdir /.cache: permission denied
make: *** [wasm/build] Error 1

Which would works if I remove the --user flag on my local computer, but would fail on GitHub Action:

error: open etc/wasm/fn/simple_process.wasm: permission denied
make: *** [Makefile:130: wasm/build] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant