Commit 4f5c55a
build: defer companion repo mutex unlock inside IIFE
Move companionRepoMu.Lock()/Unlock() inside the IIFE so the unlock is
deferred and runs even if helmRepoAdd/helmRepoUpdate panic, while keeping
the lock scoped to repo registration only — the long-running helm
upgrade --install --wait still runs unlocked, preserving parallelism.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent eea5f6e commit 4f5c55a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | 247 | | |
| 248 | + | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
257 | | - | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
0 commit comments