Commit b6d9492
committed
fix(workloadmanager): add comments to force CI build cache invalidation
The Docker build on CI uses --mount=type=cache for the Go build cache.
Stale cache entries from a prior broken push were causing a phantom
'duplicate field name workloadName' error even though the source file
was correct. Adding explanatory comments to the sandboxEntry literals
in buildSandboxByAgentRuntime and buildSandboxByCodeInterpreter changes
the file hash, forcing the Go toolchain to recompile the package from
scratch and bypass the poisoned cache.
The comments also document why WorkloadKind/WorkloadName are set here.
Signed-off-by: KinshukSS2 <kinshuk380@gmail.com>1 parent bd8b9a3 commit b6d9492
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| |||
292 | 295 | | |
293 | 296 | | |
294 | 297 | | |
| 298 | + | |
| 299 | + | |
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
| |||
351 | 356 | | |
352 | 357 | | |
353 | 358 | | |
| 359 | + | |
| 360 | + | |
354 | 361 | | |
355 | 362 | | |
356 | 363 | | |
| |||
0 commit comments