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

Pipeline-able outputs #1526

Closed
mor1 opened this issue Nov 7, 2018 · 5 comments
Closed

Pipeline-able outputs #1526

mor1 opened this issue Nov 7, 2018 · 5 comments

Comments

@mor1
Copy link

mor1 commented Nov 7, 2018

Relates to #1404 I think, but perhaps simpler?

It would be nice if there could be a -q|--quiet or similar option for dune commands that restricted output to something that could easily be piped. (Or perhaps --display quiet or something.)

Eg., to install missing dependencies for TARGET I find myself doing:

opam install -y \
$(dune external-lib-deps --missing TARGET 2>&1 | grep "^Hint" | cut -f 5- -d " ")

which might be better written:

opam install -y $(dune external-lib-deps --missing -q TARGET)
@rgrinberg
Copy link
Member

Why don't you just install straight from the opam file? $ opam install . was made for this and will work for all packages, not just ones created with dune. There's no need for any of this shell ninja stuff :)

@mor1
Copy link
Author

mor1 commented Nov 7, 2018 via email

@rgrinberg
Copy link
Member

I see. Well in that case, we're planning to generate opam files in dune quite soon. You'll be able to use these files to install opam packages.

@mor1
Copy link
Author

mor1 commented Nov 7, 2018 via email

@rgrinberg
Copy link
Member

If we liked the Unix philosophy, I believe we would have stuck to makefiles :)

There are advantages to going through an opam file. Such as enforcing the build constraints. Building dune projects with relative ease is definitely on our map. There's some discussion here: #1498

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