Skip to content

pkg: prevent user from setting with-test variable#9339

Merged
gridbugs merged 1 commit intoocaml:mainfrom
gridbugs:prevent-with-test-var
Dec 1, 2023
Merged

pkg: prevent user from setting with-test variable#9339
gridbugs merged 1 commit intoocaml:mainfrom
gridbugs:prevent-with-test-var

Conversation

@gridbugs
Copy link
Collaborator

@gridbugs gridbugs commented Dec 1, 2023

This variable is used internally by the solver to implement dune's policy of including test dependencies of local packages only. We may want to allow users some degree of control over this process eventually but that should come from a higher-level feature than setting the with-test variable directly.

Copy link
Member

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's OK to add stuff like this, but I'd recommend that we focus on expanding the functionality rather than implementing safety belts. We're gonna have plenty of ideas on what to do here once we get some real world experience from users in the upcoming alpha releases.

This variable is used internally by the solver to implement dune's
policy of including test dependencies of local packages only. We may
want to allow users some degree of control over this process eventually
but that should come from a higher-level feature than setting the
with-test variable directly.

Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
@gridbugs gridbugs force-pushed the prevent-with-test-var branch from 129f633 to f2b6aef Compare December 1, 2023 03:55
@gridbugs gridbugs merged commit 0841faa into ocaml:main Dec 1, 2023
@gridbugs gridbugs deleted the prevent-with-test-var branch December 1, 2023 03:58
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