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

Add cache-restore-only input #400

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dsame
Copy link
Contributor

@dsame dsame commented Jul 25, 2023

Description:

The use-cases are:

The suggested workaround does not really work because it requires the users to re-engineer and reconstruct the automatically created cache key

To avoid it i introduced new input cache-restore-only that makes build to skip caching without making user to deal with cache key

Related issue:
link to the related issue.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@dsame dsame requested a review from a team as a code owner July 25, 2023 18:07
@dsame dsame force-pushed the restore-cache-only branch from b90ed1b to 5525a13 Compare July 26, 2023 06:58
@dsame dsame linked an issue Jul 26, 2023 that may be closed by this pull request
@dsame dsame force-pushed the restore-cache-only branch from 5525a13 to 0f07568 Compare July 26, 2023 07:17
@dsame dsame force-pushed the restore-cache-only branch from 0f07568 to 28cfea2 Compare July 26, 2023 07:25
@freeformz
Copy link

freeformz commented Aug 4, 2023

Yes please. I understand the arguments against, but respectfully disagree - it's a pita to have to reverse engineer the key setup and copy it into a ton of different repo workflows. And then there is the possibility of future changes. I'd like the setup-go action to "just handle all of that". i.e. I think the complexity should be shifted away from users.

@gregwebs
Copy link

Can this PR get reviewed? A use case I have for this is to be able to speed up deployments. Currently waiting for the go cache cleanup to push at the end adds a noticeable delay and the deployment build is not going to produce a useful cache that doesn't already exist. I am looking to see if it is spending time caching unnecessary things and if there are settings for that, but would be nice to avoid altogether in this case.

@devnev
Copy link

devnev commented Aug 28, 2024

This would be great to get merged. @HarithaVattikuti ?

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.

Add option to restore cache only
4 participants