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 wants to pin many projects when we want to make depends #1476

Open
dinosaure opened this issue Oct 24, 2023 · 3 comments
Open

Comments

@dinosaure
Copy link
Member

I tried to test #1455 but my experimentation did not go further due to a weird behavior of the upstream version of mirage. It seems that for the docteur project (but I suspect it is the same for projects into our mirage-skeleton repository), mirage produces an OPAM file with many pin-depends. It's an addition of a hundred or so libraries as a pin, which of course pollutes the current switch. I'm not sure how this was introduced and I don't understand why it's not observable in our CI. So I produced a recording of my terminal to show that a "basic" use of mirage is actually a problem.

You can run it with:

$ unzip log.zip
$ cd log
$ scriptreplay --timing=mirage.timing mirage.log

log.zip

I will try to look into it more deeply tomorrow, but, if we agree about my "basic" usage, we must fix this issue before #1455.

@dinosaure dinosaure changed the title opam-monorepo wants to pin many projects when we want opam-monorepo wants to pin many projects when we want to make depends Oct 24, 2023
@dinosaure
Copy link
Member Author

The issue exist with opam-monorepo.0.3.6, the regression seems related to the mirage tool so.

@dinosaure
Copy link
Member Author

Ok, I can confirm that if I revert #1462, the behavior disappears. I will look reasons behind this regression.

@samoht
Copy link
Member

samoht commented Oct 27, 2023

I'll have a look at the issue. I suspect the.opam.locked file explicitely pins all the package to a specific version (and use pin-depends to make sure the location/hashes are independent of any changes in pam-repository).

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