support boolean literals in package dependencies #11447
Labels
config-file
Everything related to dune configuration file (workspace, project, dune)
feature-request
User wanted features
Desired Behavior
In the depends fields of package stanzas of dune-project files, I'd like to be able to say
true
andfalse
in places where variables likewith-dev-setup
are currently allowed. Currently, AFAICT, this is not possible (although you can write:false
to get a variable namedfalse
, which I suppose kind of works, but is weird).The context is my project vendors library L, and thus my dune-project needs to incorporate library L's dune-project dependencies. But L's dune-project contains references to with-dev-setup that I claim should always be off (because I'm not vendoring the tests, but I may use with-dev-setup for my own purpose). Obviously, I could manually simplify any boolean away, but the inclusion of L's dependency is done with a script.
Currently, I'm using
(= 1 0)
when I needfalse
, but opam maintainers are not necessarily happy about that.Example
I'd like to be able to write this sort of things in a dune-project:
The text was updated successfully, but these errors were encountered: