You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is related to the original issue, but I tried your fork out since I was already hitting issues and I got the following:
Post job cleanup.
sudo /usr/bin/tar -cz -f /Users/runner/runners/2.164.0/work/_temp/727f0d62-646e-46f2-a73a-dea2fd1ceebe/cache.tgz -C /Users/runner/runners/2.164.0/work/global-ios/global-ios/vendor/bundle .
tar: could not chdir to '/Users/runner/runners/2.164.0/work/global-ios/global-ios/vendor/bundle'
[warning]Tar failed with error: The process 'sudo' failed with exit code 1
I think I was getting the tar: could not chdir to ... error before though so maybe this isn't related to using sudo? The strange thing is that I also have a vendor/mint dir that I'm able to cache without an issue
Since we can't guarantee that a self-hosted runner is using a passwordless sudo, this would break the action for those users. The rust-specific issues in #133 have now been resolved, if you're using a different ecosystem then please file a new issue with your use-case.
We could use an option to this action called use_sudo and if this option is provided on the checks.yml using this action, then it will use sudo. This way we do not break the action for self-hosted runners not using passwordless sudo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This works for me. I don't see any downsides to using
sudohere.Try it out with
uses: jwt27/cache@dist