Skip to content

test(pkg): add repro for nil run arguments in lock directories - #15133

Merged
Alizter merged 1 commit into
ocaml:mainfrom
chizy7:repro/drop-nil-run-args
Jun 10, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
chizy7:repro/drop-nil-run-args

Conversation

@chizy7

@chizy7 chizy7 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Adds a regression test capturing curent behavior for #15099: an opam build-command argument whose filter is always false simplifies to Nil, which is kept in the generated run action and re-encoded as (when false "") in the lock directory instead of being dropped.

This is the prequel test (split out at @Alizter's request); the fix follows in #15128, where this test's expectation flips to show the argument dropped.

@chizy7

chizy7 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

@Alizter Split the test off as requested. This PR adds only the cram test capturing the current behavior, the always-false argument is kept and re-encoded as (when false "") in the locked run action. The fix in #15128 will then flip this test's expectation to show the argument dropped, so the behaviour change is visible as a single diff there.

@Alizter
Alizter merged commit 69e1a75 into ocaml:main Jun 10, 2026
29 checks passed
@Alizter Alizter added this to the 3.25.0 milestone Jul 8, 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.

2 participants