Skip to content

Commit 176abed

Browse files
committed
Clean golem-temp before verification deploy to avoid stale cached artifacts
1 parent d87b71e commit 176abed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

golem-skills/tests/harness/src/executor.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,10 @@ export class ScenarioExecutor {
947947
// Deploy implies build — run build first if not already run
948948
if (!step.verify?.build) {
949949
const buildDir = await this.findGolemProjectDir();
950+
// Clean golem-temp to force a fresh build — the agent may have built
951+
// with different SDK paths, leaving stale cached artifacts
952+
const golemTempDir = path.join(buildDir, "golem-temp");
953+
await fs.rm(golemTempDir, { recursive: true, force: true });
950954
console.log(
951955
`Step ${step.id ?? "(unnamed)"}: running implicit golem build before deploy in ${buildDir}`,
952956
);

0 commit comments

Comments
 (0)