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

opam command default action–install package deps? #5446

Closed
yawaramin opened this issue Feb 15, 2023 · 2 comments
Closed

opam command default action–install package deps? #5446

yawaramin opened this issue Feb 15, 2023 · 2 comments

Comments

@yawaramin
Copy link
Contributor

This is a feature request.

Can we make the opam command default action be to reliably do the following:

  1. Create a local switch if not already present
  2. Install all package dependencies (including with-test dependencies) listed in the top-level opam file

This would make development workflow much more ergonomic. It would greatly lower the barrier to entry of developers working on OCaml projects.

@dra27
Copy link
Member

dra27 commented Feb 28, 2023

There is work in progress (led by Tarides, being prototyped at the moment) to support a unified workflow for OCaml, with a particular focus on a single point of entry. However, the intention with that is to have dune (i.e. the build system) as the entry-point, not opam (the choice of Dune doesn't preclude other build systems being used for similar ideas). With that, opam repositories remain the source of truth for packages, but the build system is responsible for setting up the build environment (i.e. the "switch") - the user would longer be required to configure both opam and a build system.

Given that opam is never going to drive build systems, having opam create a default switch in this way still then requires the user to interact with both a package manager and a build system. There's also a pretty big compatibility concern with changing the opam command itself.

@dra27 dra27 closed this as completed Feb 28, 2023
@dra27 dra27 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2023
@yawaramin
Copy link
Contributor Author

OK, understood; so, are there any materials publicly viewable about these plans for dune and if so could you give me a pointer?

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