-
Notifications
You must be signed in to change notification settings - Fork 5
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
api v2 initial support #27
Conversation
Signed-off-by: Tonis Tiigi <[email protected]>
@@ -3,6 +3,7 @@ module github.com/tonistiigi/go-actions-cache | |||
go 1.22 | |||
|
|||
require ( | |||
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.5.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use the same dep for azblob cache on BuildKit: https://github.com/moby/buildkit/blob/81d49f78197cd471bb92ed800a4873384389bfd4/go.mod#L7
Using this version would require some changes on BuildKit: moby/buildkit#4715 (comment)
cacheURL, _ = os.LookupEnv("ACTIONS_RESULTS_URL") | ||
} else { | ||
// ACTIONS_CACHE_URL=https://artifactcache.actions.githubusercontent.com/xxx/ | ||
cacheURL, _ = os.LookupEnv("ACTIONS_CACHE_URL") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems it falls back to ACTIONS_RESULTS_URL
if ACTIONS_CACHE_URL
not set for v1: https://github.com/actions/toolkit/blob/1f7c2c79e034fe8a0d28006f52fc5b70f6dbb750/packages/cache/src/internal/config.ts#L22-L39
Supposedly these are fixed now but looks very flaky in practice. Signed-off-by: Tonis Tiigi <[email protected]>
Signed-off-by: Tonis Tiigi <[email protected]>
REST API can only work in one version. Signed-off-by: Tonis Tiigi <[email protected]>
d62fa2a
to
0313f96
Compare
Testing commit having issue with returning ok before replication has completed. Signed-off-by: Tonis Tiigi <[email protected]>
No description provided.