-
Notifications
You must be signed in to change notification settings - Fork 413
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
Renaming to Dune #721
Renaming to Dune #721
Conversation
Ok, there are still a few things to do, but I think this PR is big enough already. What it does is the following:
The two commands behaves exactly in the same way, except that
Having both is acceptable as well. In a distant future, the first way will go away and it will be required to have a What is missing in this PR and will be done in separate PRs:
|
I'm not sure what is the best way to fix the CI BTW, given that the script uses opam and that many packages rely on the package name being jbuilder. @rgrinberg @dra27 any idea? |
Is it possible to leave the old |
I'll try that |
Pardon my nitpicking, but are you dead set on using I wonder if it would be possible to solve this with same (OTOH, same |
Now is indeed a good time to raise such questions :) There is no strong technical reason to have separate files. However, when you create a workspace composed of several projects, For Regarding In practice, one should only have one
What do you mean by that? dashes are easy to type in all terminals, I believe that's why command line arguments starts with dashes. |
Understood the reasoning for special project files. For multi-project setups:
On this, I agree. Having separate non-project related config files also makes it more flexible to build workflows on top of dune (e.g with esy).
I misspoke. What I meant is the autocomplete nuisance when you have multiple similarly prefixed filenames and you want, for example, to quickly
|
A project might have, 0, 1, or more
Ok, that makes sense. I find this annoying as well for program names. In general, I would expect that Regarding the naming, In light of this discussion, my current proposal is the following:
|
Sounds great! |
d1db14d
to
14f620b
Compare
@rgrinberg tests are passing in Travis now. This PR is ready for review :) |
BTW, I simplified this PR a bit. Thinking about it, it's going to be painful to have to maintain several binaries with distinct behaviors. Plus it's going to make it harder for users to switch. So instead the two commands
|
Looks good. Why not rename |
There is no support for |
Hmm, I think we should support for such files before the release. Otherwise this adds unnecessary confusion to users who would expect that |
Indeed, I was planning to do it in this PR originally but it was becoming too big. I think the following needs to be done before the release as well:
|
This is the first step in renaming Jbuilder to Dune.
This PR implements the minimum required from #461 to do the switch: it adds support for
dune-project
files. The current version of thedune
language is0.1
and is exactly the same as jbuilder. This means that to convert a project to dune, one just needs to add adune-project
file with:as we implement the other features of #461, we will increase this version number.
This PR builds and installs both
dune
andjbuilder
binaries. The only difference between the two is the doc and the fact thatdune
no longer looks forjbuild-workspace*
files.