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-cache is ignored #38

Open
mariusvniekerk opened this issue Mar 1, 2024 · 2 comments · May be fixed by #102
Open

use-cache is ignored #38

mariusvniekerk opened this issue Mar 1, 2024 · 2 comments · May be fixed by #102

Comments

@mariusvniekerk
Copy link

When trying to not use the cache to work around issues with cacheing it still seems to use the cache regardless and fails when doing so?

Run earthly/actions-setup@v1.0.10
  with:
    use-cache: false
    version: latest
    prerelease: false
  env:
    CI: true
  
Configured range: latest; allow prerelease: false
Install destination is /home/runner/.earthly
Matched version: v0.[8](https://github.com/XXXXXXXXXXXXXXXXXX/actions/runs/8106015489/job/22155321986#step:4:8).4
Received 1991[8](https://github.com/XXXXXXXXXXXXXXXXXX/actions/runs/8106015489/job/22155321986#step:4:9)14[9](https://github.com/voltrondata/vice-python/actions/runs/8106015489/job/22155321986#step:4:10) of 19918149 ([10](https://github.com/XXXXXXXXXXXXXXXXXX/actions/runs/8106015489/job/22155321986#step:4:11)0.0%), 29.0 MBs/sec
Cache Size: ~19 MB (19918[14](https://github.com/XXXXXXXXXXXXXXXXXX/actions/runs/8106015489/job/22155321986#step:4:15)9 B)
/usr/bin/tar -z -xf /runner/_work/_temp/f6846a4a-fdc3-4528-acbb-ff95f0787[16](https://github.com/XXXXXXXXXXXXXXXXXX/actions/runs/8106015489/job/22155321986#step:4:17)1/cache.tgz -P -C /runner/_work/REPO
Cache restored successfully
Cache restored from key: earthly-cache-Linux-X64-0.8.4
Error: ENOENT: no such file or directory, chmod '/home/runner/.earthly/bin/earthly'
@mariusvniekerk
Copy link
Author

Looking at the code it seems as if core.getInput("use-cache") is never even called

@alexcb
Copy link
Contributor

alexcb commented Mar 1, 2024

it looks like it's used when deciding to save to the cache under

if (core.getInput('use-cache') !== "true") {
core.info(`skipping cache save as use-cache is not true`);
return;
}

maybe something similar can be done under

export const restoreCache = async (
?

PRs are most welcomed :)

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 a pull request may close this issue.

2 participants