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

append/prepend to PATH-like variables in dune-workspace #3441

Closed
avsm opened this issue Apr 30, 2020 · 3 comments
Closed

append/prepend to PATH-like variables in dune-workspace #3441

avsm opened this issue Apr 30, 2020 · 3 comments

Comments

@avsm
Copy link
Member

avsm commented Apr 30, 2020

It would be useful to be able to prepend/append to PATH in dune-workspace files, which currently support:

(paths (<var1> <val1>) .. (<varN> <valN>))

This can be used to introduce a local OCaml compiler and associated tools to a dune build seamlessly, without interfering with the main dune build graph.

Discussed with @rgrinberg offline.

@ghost
Copy link

ghost commented May 5, 2020

Doesn't (paths (PATH <path> :standard)) already works?

/cc @nojb who added this feature IIRC

@nojb
Copy link
Collaborator

nojb commented May 5, 2020

Indeed it should work I think. It was added in #2426. Did you try it @avsm?

@avsm
Copy link
Member Author

avsm commented Jun 5, 2020

It works, and allows a dune build to proceed without an OCaml or opam installation on the system. This is how the duniverse bootstrap will work shortly. Thanks!

(lang dune 2.5)
(context (default (paths (PATH _ocaml/bin :standard))))

@avsm avsm closed this as completed Jun 5, 2020
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

No branches or pull requests

2 participants