mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1513] Is it possible to use the cache action locally? #772
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#772
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @garyo on GitHub (Dec 18, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1513
Act version
act version 0.2.34
Feature description
I'd like to debug a github actions problem that only happens when using a cache. Is it possible to use the github
actions-cache@v3action locally somehow? When I use it with default settings, I get "[warning]An internal error has occurred in cache backend." and there is no cache hit. I assume this is because it wants to connect to the github cache server?@ChristopherHX commented on GitHub (Dec 18, 2022):
Maybe use this extra software https://github.com/sp-ricard-valverde/github-act-cache-server with act.
I haven't tested it
@brainstorm commented on GitHub (Dec 19, 2022):
Tested and works, thanks for sharing!:
And on the cache-server-docker log:
Granted, it doesn't find the cache keys because it is a first run and/or I have the keys misconfigured, but this third party cache daemon allows me to run my Rust CI workflow locally 🎉
@molayodecker commented on GitHub (Mar 1, 2023):
Hi @brainstorm,
Can you please share your cache workflow.
This is what I have and it doesn't work
Looks like the Authorization key is missing
@brainstorm commented on GitHub (Mar 1, 2023):
I don't use this anymore, but my workflows are here: https://github.com/umccr/htsget-rs/
By the error messages, it seems that the cache docker container thing is not up and/or reachable? Sorry I cannot help further :/
@molayodecker commented on GitHub (Mar 1, 2023):
It's reachable but looks like i'm not sending a Authorization token
github.com/sp-ricard-valverde/github-act-cache-server@a9f979f43b/src/index.js (L44)Thanks for the feedback
@michalcs commented on GitHub (Mar 19, 2023):
Same issue here. Can't get the authorisation working , failing on
ECONNREFUSED ::1:8080I've tried to comment out that
ifcondition and the localhost:8080 now responds withsuccess. Butactstill throws the same error when running the workflow 🤷@MatteoGioioso commented on GitHub (Apr 12, 2023):
Has anyone managed to make this work? I always have:
Cache not found for input keys: mykey, so effectively is not cachingUPDATE: ok, it was not clear from the cache action docs that I have to explicitly save the dependencies:
@wolfogre commented on GitHub (May 5, 2023):
Closed by #1770
@joeygrisafe-RL commented on GitHub (Sep 26, 2023):
Is this working for anyone using setup-python or setup-node actions?