-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
I'm caching a directory containing executables installed with cargo install
, I'm encountering an error from the cache extract job due to what seems to be a lack of permissions:
Cache Size: ~17 MB (17577808 B)
/bin/tar -xz -f /home/runner/work/_temp/4130fa0a-e1b8-42ef-968f-a251c5f901e0/cache.tgz -C /home/runner/.cargo/bin
/bin/tar: .: Cannot utime: Operation not permitted
/bin/tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted
/bin/tar: Exiting with failure status due to previous errors
[warning]The process '/bin/tar' failed with exit code 2
Here's the YAML for the cache task:
- name: Cache cargo binaries
id: cache-cargo-binaries
uses: actions/cache@v1
with:
path: ~/.cargo/bin
key: ${{ runner.os }}_nightly-2019-11-25_cargo-registry_just-0.5.1_wasm-bindgen-cli-0.2.54
The weird part is that it seems to actually be successfully extracting the cache; it just reports an error and doesn't set steps.cache-cargo-binaries.outputs.cache-hit
to true. When the command to re-install the binary from scratch gets run, it reports that the binary already exists and fails:
Added matchers: 'rust'. Problem matchers scan action output for known warning or error strings and report these inline.
/usr/share/rust/.cargo/bin/cargo install just --version 0.5.1
Updating crates.io index
Downloading crates ...
Downloaded just v0.5.1
error: binary `just` already exists in destination
##[error]Add --force to overwrite
##[error]The process '/usr/share/rust/.cargo/bin/cargo' failed with exit code 101
##[error]Node run failed with exit code 1
smackysnacks
Metadata
Metadata
Assignees
Labels
No labels