asdf-vm / asdf-vm/actions

The action doesn't work when we cache the `/home/runner/.asdf` folder with Github Cache action

Open
#445 6 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
163
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Hi all, thank you for creating this action.

### Problem

We are starting to use this action on our CI workflow; it's working well. The only issue is we can't cache the `asdf` directory to reduce the installation time.

The installation step takes more than 3 minutes.

![image](https://user-images.githubusercontent.com/11751745/168982773-7d9fc213-989d-4a73-b0fe-d96e266fcb9e.png)

We tried to cache that with the Github cache feature by caching the `/home/runner/.asdf` folder. It ends up with the following error.

![image](https://user-images.githubusercontent.com/11751745/168983011-92d977ef-6634-4a86-9662-fe3cb43ce2f2.png)

### Expectation

The action should work with the Github cache. If the `asdf or plugins` exist in `/home/runner/.asdf`. Install them directly.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by caching /home/runner/.asdf with the GitHub Cache action, then inspect the action's installation flow and how it handles existing asdf files or plugins. Done means the action works with that cache restored and installs existing asdf components directly without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript
Domain
ci-cd, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.