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 monorepo install command? #393

Open
nojb opened this issue Jul 10, 2023 · 4 comments
Open

opam monorepo install command? #393

nojb opened this issue Jul 10, 2023 · 4 comments

Comments

@nojb
Copy link

nojb commented Jul 10, 2023

I played a bit with opam monorepo recently and am wondering if you considered adding a command opam monorepo install <pkg1> <pkg2> ... to install a subset of the vendored packages in a given prefix. The use-case is for monorepos where the vendored dependencies are installed before the main build and then made available to the rest of the build using OCAMLPATH.

@Leonidas-from-XIV
Copy link
Member

I am not sure I understand what you mean. What kind of packages would <pkg1> <pkg2> be. Packages that are vendored and part of the lockfile? Or arbitary OPAM packages?

What do you mean with installing in this context? Installing it in the switch? Building them into _build?

@nojb
Copy link
Author

nojb commented Jul 10, 2023

I am not sure I understand what you mean. What kind of packages would <pkg1> <pkg2> be. Packages that are vendored and part of the lockfile? Or arbitary OPAM packages?

A subset of the packages that are vendored, mentioned in the lockfile.

What do you mean with installing in this context? Installing it in the switch? Building them into _build?

I mean it in the usual dune install sense which installs packages in an arbitrary prefix specified with --prefix.

@Leonidas-from-XIV
Copy link
Member

Ah so basically a loop over some folders in the duniverse folder, calling dune install --prefix?

I am asking because we were indeed considering an opam-monorepo install command, but that one would take the non-vendored dependencies and install them in the switch, to make it easier to go from nothing to a working build.

@nojb
Copy link
Author

nojb commented Jul 14, 2023

Ah so basically a loop over some folders in the duniverse folder, calling dune install --prefix?

Something like that, except that today there is no easy way (as far as I can see) to build the necessary artifacts (the @install alias) using opam monorepo.

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