Skip to content

Fix permission denied, mkdir '/home/runner' on a self-hosted runner#14

Merged
radu-matei merged 3 commits into
engineerd:masterfrom
superbrothers:fix-permission-denied
Feb 27, 2020
Merged

Fix permission denied, mkdir '/home/runner' on a self-hosted runner#14
radu-matei merged 3 commits into
engineerd:masterfrom
superbrothers:fix-permission-denied

Conversation

@superbrothers
Copy link
Copy Markdown
Contributor

Fixes #13

Signed-off-by: Kazuki Suda <kazuki.suda@gmail.com>
Comment thread src/kind.ts Outdated
await io.mkdirP(binPath);
await exec.exec("chmod", ["+x", downloadPath]);
await io.mv(downloadPath, path.join(binPath, "kind"));
let toolPath: string = tc.find("kind", version);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this because the tool has already been downloaded on the runner?

Then I would much rather make the check outside of downloadKind - what do you think?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, in this case, it might even make sense to expose this as a config for the action?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I would much rather make the check outside of downloadKind - what do you think?

It is better. I'll change it that way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, downloaded tools in actions are cached and reused (e.g., actions/setup-go), so I feel that there is no need to expose it as a config. Is my understanding correct?

Copy link
Copy Markdown
Contributor Author

@superbrothers superbrothers Feb 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I would much rather make the check outside of downloadKind - what do you think?

I did it at 2db0c02.

Copy link
Copy Markdown
Member

@radu-matei radu-matei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is excellent, thanks a lot!

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

Successfully merging this pull request may close these issues.

`EACCES: permission denied, mkdir '/home/runner' occurred on a self-hosted runner

2 participants