clearUpdateResolutionCaches clears per-run ref-resolution caches so update operations always start from fresh repository state.
()
| 40 | // clearUpdateResolutionCaches clears per-run ref-resolution caches so update |
| 41 | // operations always start from fresh repository state. |
| 42 | func clearUpdateResolutionCaches() { |
| 43 | defaultBranchCache.Range(func(key, value any) bool { |
| 44 | defaultBranchCache.Delete(key) |
| 45 | return true |
| 46 | }) |
| 47 | branchCommitCache.Range(func(key, value any) bool { |
| 48 | branchCommitCache.Delete(key) |
| 49 | return true |
| 50 | }) |
| 51 | clearVersionLabelCache() |
| 52 | } |
| 53 | |
| 54 | // UpdateWorkflowsOptions configures workflow update behavior. |
| 55 | type UpdateWorkflowsOptions struct { |
no test coverage detected