Skip to content

Uses tool cache - skips wrapper create on hit. - #94

Open
jcuffe wants to merge 2 commits into
hashicorp:mainfrom
jcuffe:master
Open

jcuffe wants to merge 2 commits into
hashicorp:mainfrom
jcuffe:master

Conversation

@jcuffe

@jcuffe jcuffe commented Mar 6, 2021 •

Copy link
Copy Markdown

I noticed that this library was using the actions/tool-cache, which has great helpers for saving and loading from the runner cache.

I wanted this for my own project in order to save resources on my free Github plan. I recently learned that actions/cache works well with actions/tool-cache, even on Github runners, so this could be useful to others as well!

The existing API is maintained. The only logic change necessary aside from checking the cache, was to skip creation of the wrapper when loading from cache (to prevent the terraform-bin terraform executable from being replaced with the cached wrapper script living in terraform).

Let me know if any further changes are necessary to integrate!

@jpogran jpogran added the enhancement New feature or request label Mar 7, 2022
@hashicorp-cla

hashicorp-cla commented Mar 12, 2022 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jpogran

jpogran commented May 18, 2022

Copy link
Copy Markdown
Contributor

Thank you for the contribution @jcuffe! Apologies on the delay in reviewing your PR. I appreciate that you've added tests for this use case as well. I'll be reviewing this PR this week.

@shahariaazam

Copy link
Copy Markdown

@jpogran any time to review this.

@shahariaazam

Copy link
Copy Markdown

@jpogran Any time to review this yet?

@oradwell

Copy link
Copy Markdown

this action still doesn't support tool cache. any chance in reviewing this @austinvalle ? happy to create a new PR if the author is no longer available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants