fix(deploy): nuclear-replace src to defeat skip-worktree ghosts
Local Build and Deploy / deploy (push) Canceled after 9m26s
Local Build and Deploy / deploy (push) Canceled after 9m26s
Host built a different event-form than HEAD while git looked clean; delete src, restore from git objects, and hash-verify every tracked blob. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
968f6ff7db
commit
d0f9b3ef95
2 files changed
+46
-30
No files matched your search
@@ -24,11 +24,13 @@ describe("production deploy workflow", () => {
|
||||
expect(resetAt).toBeGreaterThan(reclaimAt);
|
||||
});
|
||||
|
||||
it("verifies src/ and nitro blob match HEAD before typecheck", () => {
|
||||
expect(workflow).toContain("git diff --exit-code -- src");
|
||||
it("nuclear-replaces src/ and verifies every tracked blob hash", () => {
|
||||
expect(workflow).toContain("rm -rf src");
|
||||
expect(workflow).toContain("git checkout -f HEAD -- src");
|
||||
expect(workflow).toContain("git hash-object");
|
||||
expect(workflow).toContain("nitro-editor-dialog.tsx");
|
||||
expect(workflow).toContain("*.tsbuildinfo");
|
||||
expect(workflow).toContain("no-skip-worktree");
|
||||
expect(workflow).toContain("no-assume-unchanged");
|
||||
expect(workflow).toContain("Verified all tracked src/ blobs match HEAD");
|
||||
expect(workflow).toContain("pnpm typecheck");
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user