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

pak should not be cached #264

Closed
maelle opened this issue Mar 19, 2021 · 4 comments
Closed

pak should not be cached #264

maelle opened this issue Mar 19, 2021 · 4 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@maelle
Copy link
Contributor

maelle commented Mar 19, 2021

Describe the bug

In examples workflows using pak, pak's latest version is installed.
However, because the whole library is cached, pak's installation is overwritten by the cached version.

To Reproduce
r-lib/pkgdown#1572 where I needed pak to use a DESCRIPTION field called "Config/Needs/website". I use it twice, once before the cache step, one after that. The first time things work fine because pak's latest version is installed, the second time there is a failure because pak from the cache is used.

Expected behavior
I would expect the workflow to install and use the latest pak version throughout.

Additional context

I found actions/toolkit#713 which isn't solved yet, so one cannot exclude pak from the cache path.

Cc @gaborcsardi @hadley

@maelle maelle added the bug an unexpected problem or unintended behavior label Mar 19, 2021
@jimhester
Copy link
Member

Ok, we should now exclude the pak directory from the cache, which should fix this issue.

@maelle
Copy link
Contributor Author

maelle commented Mar 25, 2021

Thanks! Does this mean actions/toolkit#713 has been solved?

jimhester added a commit that referenced this issue Apr 15, 2021
This allows the exclusion to work. The exclusions are only applied to the list of files, and directories are not recursed into.
So without the wildcard the exclusion will never match. However with a single wildcard it will and do what we want.

Fixes #264 (comment)
@jimhester
Copy link
Member

So 0d6c4b3 is a workaround for that issue that does allow the exclusion to succeed, so this should now work as intended.

@github-actions
Copy link

github-actions bot commented Nov 6, 2022

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants