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

Permission denied writing output file #9

Open
orlade-anz opened this issue Nov 5, 2021 · 2 comments
Open

Permission denied writing output file #9

orlade-anz opened this issue Nov 5, 2021 · 2 comments

Comments

@orlade-anz
Copy link

orlade-anz commented Nov 5, 2021

We're using vsce-action@master to publish https://github.com/anz-bank/vscode-sysl, and it was working fine until today. Success a week ago, new failure today. This appears to coincide with the 3.0 release, and although we changed a lot none of it was related to the build/publish flow.

One difference I noted was the apparent removal of a directory argument to yarn:

Success (note the /github/workspace on line 1):

> [email protected] esbuild-base /github/workspace
> esbuild ./extension/main.ts --bundle --outfile=out/main.js --external:vscode --external:electron --format=cjs --platform=node "--minify"


  out/main.js  817.5kb

Done in 179.62s.

Error:

> [email protected] esbuild-base
> esbuild ./extension/main.ts --bundle --outfile=out/main.js --external:vscode --external:electron --format=cjs --platform=node "--minify"

 > error: Failed to write to output file: open /github/workspace/out/main.js: permission denied


  out/main.js  825.4kb

error Command failed with exit code 1.
@lannonbr
Copy link
Owner

lannonbr commented Nov 5, 2021

So as of today's update, the underlying docker container is now based on node:16-slim. If possible, I'd say check if you can run your esbuild-base command in a node:16-slim container locally on your own machine / a VM. If that passes it may be a GH Actions runner permissions issue, otherwise if it doesn't run properly, then it's an esbuild issue.

@monotykamary
Copy link

Had this issue with publishing https://github.com/monotykamary/vscode-aql running on lannonbr/[email protected] which still uses node:10-slim. Upgrading to 3.0.0 seems to run just fine.

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

3 participants