MCPcopy Create free account
hub / github.com/github/gh-aw / MarkCacheKeyAsUsed

Method MarkCacheKeyAsUsed

pkg/workflow/action_resolver.go:45–48  ·  view source on GitHub ↗

MarkCacheKeyAsUsed explicitly marks a cache key as used during this compilation run. This is useful for compiler-generated actions that aren't resolved through ResolveSHA.

(cacheKey string)

Source from the content-addressed store, hash-verified

43// MarkCacheKeyAsUsed explicitly marks a cache key as used during this compilation run.
44// This is useful for compiler-generated actions that aren't resolved through ResolveSHA.
45func (r *ActionResolver) MarkCacheKeyAsUsed(cacheKey string) {
46 r.usedCacheKeys[cacheKey] = true
47 resolverLog.Printf("Marked cache key as used: %s", cacheKey)
48}
49
50// MarkCompilerGeneratedActionsAsUsed scans the cache for any entries matching
51// compiler-generated action repos and marks them as used. This ensures that actions

Callers 1

getActionPinMethod · 0.80

Calls 1

PrintfMethod · 0.45

Tested by

no test coverage detected