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

Use sudo (if available) when installing sccache #273

Merged

Conversation

boomanaiden154
Copy link
Contributor

When running this action inside a container as a non-root user, installing sccache will typically fail due to the non-root user not having write permissions to /usr/local/bin. This patch fixes this by using sudo for downloading/installing sccache along with some modifications to executeShellSudo so that it will execute the entire command as expected.

When running this action inside a container as a non-root user, installing
sccache will typically fail due to the non-root user not having write
permissions to /usr/local/bin. This patch fixes this by using sudo for
downloading/installing sccache along with some modifications to
executeShellSudo so that it will execute the entire command as
expected.
@hendrikmuhs hendrikmuhs merged commit f5df292 into hendrikmuhs:main Jan 11, 2025
44 of 45 checks passed
hendrikmuhs added a commit that referenced this pull request Jan 11, 2025
@hendrikmuhs hendrikmuhs mentioned this pull request Jan 11, 2025
hendrikmuhs added a commit that referenced this pull request Jan 11, 2025
* Revert "Use sudo (if available) when installing sccache (#273)"

This reverts commit f5df292.

* revert 273
@hendrikmuhs
Copy link
Owner

@boomanaiden154

I had to revert #273 as it caused failures, feel free to re-open the PR.

@boomanaiden154 boomanaiden154 deleted the install-sccache-with-sudo branch January 11, 2025 22:03
@boomanaiden154
Copy link
Contributor Author

I had to revert #273 as it caused failures, feel free to re-open the PR.

Sorry about that. I don't think Github supports reopening merged PRs. I'll open another PR with the issues fixed.

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.

None yet

2 participants