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)
| 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. |
| 45 | func (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 |