Skip to content

Conversation

@flosell
Copy link

@flosell flosell commented May 31, 2025

#235 suggests good workaround for implementing caching for plugins and install. However, adding these to every pipeline makes the pipeline more noisy and harder to read. It's also less intuitive than a first-party implementation.

So here's a PR that'd implements jaymecds workaround directly in the action, with three differences:

  • it supports the tool_versions input to the action
  • it always runs a asdf install even when a cache was restored, so that stale or partial caches can be rectified
  • caching is disabled by default and can be enabled using the enable_cache input

I tested this with a few of my pipelines and found it quite helpful, at least when using plugins that install from source (e.g. ruby). Open to feedback though.

What do you think?

flosell added 22 commits May 29, 2025 18:13
Before, this was implicitly done by pluginsAdd but we now need it before installing plugins to get the current asdf version for the cache-key
@flosell flosell requested a review from jthegedus as a code owner May 31, 2025 09:40
@flosell flosell changed the title Caching Feature (implements #235) [feat] Caching Feature (implements #235) May 31, 2025
@flosell flosell changed the title [feat] Caching Feature (implements #235) feat: Caching Feature (implements #235) May 31, 2025
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 this pull request may close these issues.

1 participant