Switch from --release to -p in build command
With the introduction of package management dune build --release
is
going to start using lockfiles (if present) to install dependencies
before building the project. Thus in opam file it's recommended to use
dune build -p <name>
instead, as this will continue to ignore
lockfiles.
Signed-off-by: Stephen Sherratt stephen@sherra.tt
Merge request reports
Activity
For some context, see https://github.com/ocaml/dune/pull/11378
Thank you for reaching for us. As I asked in the linked issue, can we still use
--ignore-lock-dir
?Edited by François BobotAh that doesn't work at the moment.
--release
currently implies--ignore-lock-dir
(https://github.com/ocaml/dune/pull/11378 would change this), and this means that you can't pass both flags at the same time. I'll post on the linked PR as we may need to change our approach.assigned to @blanchard
I can think of two alternatives:
- frama-c continues to use
--release
but if the project ever starts using dune package management you'll need to make sure that released source archives don't contain lockdirs - in the build commands, check the version of dune and if it's >= the version that switches the behaviour of
--release
, pass--ignore-lock-dir
todune build
.
- frama-c continues to use