Skip to content

Get rid of dependency in mybuild - #308

Open
Niols wants to merge 2 commits into
ygrek:masterfrom
Niols:exit-mybuild
Open

Get rid of dependency in mybuild#308
Niols wants to merge 2 commits into
ygrek:masterfrom
Niols:exit-mybuild

Conversation

@Niols

@Niols Niols commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The mybuild dependency came only to provide the version numbers. I see two ways to replace it:

  • Rely on dune subst and simply have %%VERSION%% in the code. This is the simplest but it will actually print the string %%VERSION%% during development as dune subst only runs during actual installation.

  • Rely on something like dune-build-info which can do it but would introduce another dependency.

This PR implements the former. While I'm at it, I also add the explicit dependency in unix to silence the corresponding >5.0 warning.

Niols added 2 commits August 7, 2026 10:01
This silences:

```
Alert ocaml_deprecated_auto_include:
OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
automatically added to the search path, but you should add -I +unix to the
command-line to silence this alert (e.g. by adding unix to the list of
libraries in your dune file, or adding use_unix to your _tags file for
ocamlbuild, or using -package unix for ocamlfind).
```
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.

1 participant