Skip to content

fix: Isolate Cargo artifact outputs - #13359

Closed
anthonyshew wants to merge 1 commit into
mainfrom
shew/fix-cargo-artifact-isolation
Closed

anthonyshew wants to merge 1 commit into
mainfrom
shew/fix-cargo-artifact-isolation

Conversation

@anthonyshew

Copy link
Copy Markdown
Contributor

Why

Cargo output wildcards could cache stale deliverables from another profile, target, target directory, or platform. Restoring those artifacts could corrupt builds, while log-only cache hits for unresolved layouts could suppress required Cargo execution.

What

Resolve and cache only exact effective Cargo deliverable paths across profile, target, target directory, and platform selection. Unknown or externally influenced layouts fail closed by disabling automatic caching while preserving explicit outputs and cache intent.

How

Pass narrowly projected, automatically hashed layout context into toolchain I/O derivation; use Cargo metadata and rustc host/target data; validate config, manifest, environment, argument, platform, and path-containment controls conservatively. Validated with 327 repository tests, complete engine/lib suites, 38 Cargo E2Es, cargo lint, cargo fmt, and final diff reviews.

@anthonyshew
anthonyshew requested a review from a team as a code owner July 13, 2026 13:46
@anthonyshew
anthonyshew requested review from tknickman and removed request for a team July 13, 2026 13:46
@vercel

vercel Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 1:48pm
examples-designsystem-docs Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 1:48pm
examples-gatsby-web Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 1:48pm
examples-kitchensink-blog Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 1:48pm
examples-nonmonorepo Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 1:48pm
examples-svelte-web Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 1:48pm
examples-tailwind-web Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 1:48pm
examples-vite-web Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 1:48pm
turbo-site Ready Ready Preview, Comment, Open in v0 Jul 13, 2026 1:48pm
turborepo-eve-agent Error Error Open in v0 Jul 13, 2026 1:48pm

@anthonyshew

Copy link
Copy Markdown
Contributor Author

Superseded by the reviewed stack:

The final stack was audited against this PR; all production behavior and test intent are represented, with additional fail-closed hardening.

This branch had an error being deployed

1 failed deployment
Preview – turborepo-eve-agent — c03f8fb7 Deployed Jul 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant