Skip to content
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

Rename %{root} to %{workspace_root} #993

Merged
1 commit merged into from Jul 10, 2018
Merged

Rename %{root} to %{workspace_root} #993

1 commit merged into from Jul 10, 2018

Conversation

ghost
Copy link

@ghost ghost commented Jul 10, 2018

There are two notions of root in dune:

  • the root of a project, which is the first parent directory to contain a dune-project file (or at least one <package>.opam for compatibility with jbuilder)
  • the root of the workspace

The latter is often equal to the former, expect when a package is vendored. Looking at the dune-universe, many projects are currently using ${ROOT} when they should really be using ${SCOPE_ROOT}. ${SCOPE_ROOT} was renamed %{project_root} in dune. To make things even more explicit, this PR renames %{root} to %{workspace_root}.

@ghost ghost requested a review from emillon July 10, 2018 14:00
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
@ghost ghost merged commit d273771 into ocaml:master Jul 10, 2018
This pull request was closed.
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.

2 participants