Skip to content

Share compiler drivers and lint libraries in a unified cache - #2184

Closed
dblock wants to merge 1 commit into
trailofbits:masterfrom
dblock:dblock/unified-cache
Closed

dblock wants to merge 1 commit into
trailofbits:masterfrom
dblock:dblock/unified-cache

Conversation

@dblock

@dblock dblock commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Share compiler drivers and lint libraries across projects and worktrees through DYLINT_CACHE_DIR, defaulting to ~/.dylint/cache. Safely migrate existing default caches and preserve the deprecated DYLINT_DRIVER_PATH override.

Drivers are isolated by version/build identity; libraries share one cache per toolchain. Library source isolation is deferred: same-name libraries can replace each other, and --no-build can use the wrong revision.

Validation: formatting, workspace lints, Clippy, targeted unit/integration tests, README synchronization, and lockfile checks passed locally on macOS.

Closes #2142.

AI-authored on behalf of @dblock.

@dblock
dblock requested a review from smoelius as a code owner November 18, 2026 00:53
Introduce DYLINT_CACHE_DIR with a ~/.dylint/cache default and retain the existing per-toolchain library organization. Migrate shipped default caches through locked, timestamp-preserving staged copies without removing legacy data or overwriting destinations. Keep compatible compiler-driver version/build isolation and the deprecated driver-only override.

Defer library source partitioning and collision handling: libraries share outputs by toolchain and --no-build retains its existing source-validation limitation. Cover cross-workspace reuse, migration, overrides, and unchanged output-collision behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/unified-cache branch from bef83df to 08b55fc Compare November 18, 2026 01:34
@dblock

dblock commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Moved this implementation, including the CI fix, into #2179. Closing this duplicate in favor of continuing review there.

AI posting on behalf of @dblock.

@dblock dblock closed this Nov 18, 2026
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.

Installing/caching lints

1 participant