-
Notifications
You must be signed in to change notification settings - Fork 427
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
pkg: allow pkg for release builds #11378
Conversation
Shouldn't |
-p triggers --release. So yes, this is the reason. Opam release builds should ignore lock directories |
@rgrinberg would there be any harm in moving |
Grepping through the opam repository shows me there's a handful of packages that use |
Looks like there's only 5 or so packages whose latest version uses |
We could already switch the existing releases to |
Given the small number of packages in question, I think you should add a step to create an issue in the respective bug trackers telling people they need to switch. You could also add a new flag ( |
I was thinking I'd just send a PR that fixes the issue directly, though raising an issue would be less work.
Why not just let people use |
Sounds like a good solution. So if I understand the conclusion correctly we would do the following:
I think this is quite nice, because in @gridbugs Do you need help with these? If you want I can handle the projects that use |
Thanks @Leonidas-from-XIV . I'll make PRs to upstream this change into individual projects today and link them here. |
Sorry, for clarification are you removing We have multiple packages in a repository that are installed with a unique opam file. We can revisit this choice, ( (Coming from frama-c) |
Upstreaming PRs: tezos-rust-libs is deprecated so I ignored it. |
No we're not removing |
Regarding frama-c (cc @bobot) it sounds like in the ideal world that project would be able to pass |
What should we do with this PR? Should we ignore it for I'm wondering if we can't specify the constraint with opam like this:
According to the opam manual:
WDTY? |
I'm fairly certain you can attach the filter just to the argument you want filter (e.g. how
I personally think we should just do the change in 3.18 and fix up packages in opam-repository where necessary (which it mostly isn't since I assume no package come with lockdirs anyway) |
To prevent lockdirs from being used to install dependencies while a package is being built by opam, `dune build` would ignore lockdirs when run with `--release`. The problem with this is that it's expected that users will run `dune build --release` with the expectation that dune will build with more optimizations enabled. Although this is not what `--release` means to `dune build`, the behaviour of ignoring lockdirs would have caused some confusion. This change allows `dune build --release` to consider lockdirs, however `-p` (commonly used in opam build commands) still ignores lockdirs. Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
7417d67
to
5edfeec
Compare
Fixes #11375
@rgrinberg do you remember why "--ignore-lock-dir" was added to the arguments passed by "--release"? Is it now safe to remove?