-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The format of dune files is not exactly the same as the sexplib format #4
Comments
I had noticed this error while running dune-deps on dune, but I quickly brushed it off, wrongly assuming that it was an intentionally broken test case :-p The solutions you suggest look promising. Not sure what's best at the moment. To be continued. |
I haven't added support for the real dune syntax, but I added a Together with the new The command to make the image above is:
|
Nice :) BTW, I started working on a small separate library for parsing and editing dune files, in particular so that users can apply automatic transformations to dune files (cf ocaml/dune#3337). It's not yet ready, but if you want to experiment with it, I'm happy to put it up. |
I like the idea of relying on a dune-compatible S-expression library, rather than depending on dune as a whole. For the sake of maintenance, I like that dune-deps doesn't depend on a specific version of dune. I don't mind if certain things don't work perfectly, such as the exclusion of files using I'm happy to create a branch for testing the new parsing library. I'd need a public git URL and a build/install command. |
Alright, so I got a first version there: https://github.com/diml/dune-files. The name is not great BTW, but I don't know how to call it. If you have some ideas, I'm interested :) |
Looking good so far, thank you! I'll let you know how it goes. |
I created a Regarding the name: I also have a couple questions which I'll post on the dune-files repo. |
|
There are a few differences between the format of
dune
files and the s-expressions parsed by sexplib. As a result,dune-deps
cannot parse certain files. For instance, if I calldune-deps
on dune itself, I get:Eventually, we will probably extract a small stable library as we did for csexp and pp for parsing dune files. Another idea would be to rely on dune describe, which is meant precisely for this purpose: providing a stable interface for extracting information out of a dune project.
The text was updated successfully, but these errors were encountered: