Skip to content

test(ppx): demonstrate unsandboxed lint action - #16175

Merged
rgrinberg merged 1 commit into
mainfrom
push-tlpxnvtystwu
Aug 24, 2026
Merged

rgrinberg merged 1 commit into
mainfrom
push-tlpxnvtystwu

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Add a lint regression case whose PPX behavior depends on whether an undeclared generated target is visible.

The test records the current target visibility during linting, demonstrating that lint PPX execution is not sandboxed. This is the test-only precursor to sandboxing lint actions in a follow-up change.

@rgrinberg
rgrinberg merged commit 458b7e3 into main Aug 24, 2026
37 of 39 checks passed
@rgrinberg
rgrinberg deleted the push-tlpxnvtystwu branch August 24, 2026 20:37
rgrinberg added a commit that referenced this pull request Aug 24, 2026
Pass the preprocessor sandbox policy to lint PPX actions. Default
sandboxing begins with Dune language 3.25, while explicit sandbox
settings remain honored.

This prevents PPX linters from observing undeclared build targets, as
demonstrated by #16175.

Signed-off-by: Rudi Grinberg <[email protected]>
@Alizter Alizter added this to the 3.25.0 milestone Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants