Conversation
Fixes ocaml#8703 This is a lighter change than the original in ocaml#8518. Signed-off-by: Etienne Millon <me@emillon.org>
|
I had a look at how we could extend that mechanism (turning to fallback instead of removing them) to user-provided rules but I'm not sure how it would work in practice. Did you mean something like the following?
|
|
To be clear, making |
|
Ok. We can remove that version check. It's likely to surface some issues in some projects, though. What do we do for 3.11? Is the fix in this PR enough, and we'll remove the version check for user rules in 3.12? |
I'd just do it in one go. It becomes hard to keep a map in your head of how things work between different versions of dune if we split a logical change in chunks like that. Tbh, if this change is so painful to include in 3.11, you could always revert it in that branch and we could keep it in |
|
OK. The next round of testing will reveal what breaks. I'll do the other change in a separate PR to ease reverting. |
|
Other fix is in #8721 |
CHANGES: - Turn internal promote rules into fallback rules when `--ignore-promoted-rules` is set (ocaml/dune#8518, ocaml/dune#8706, fix ocaml/dune#8417, fix ocaml/dune#8703, @rgrinberg, @emillon) - Make copy sandbox support directory targets. (ocaml/dune#8705, fixes ocaml/dune#7724, @emillon)
Signed-off-by: Etienne Millon <me@emillon.org>
| Some rule.targets | ||
| let rule = make_rule t ?mode ?loc ~dir build in | ||
| let+ () = Rules.Produce.rule rule in | ||
| Some rule.targets |
There was a problem hiding this comment.
This function no longer needs to return option
This reverts commit b326c30.
This reverts commit b326c30. Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
This reverts commit b326c30. Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
* refactor: simplify left over type signature Signed-off-by: Rudi Grinberg <me@rgrinberg.com> * Revert "refactor: simplify left over type signature" This reverts commit ec929ce. Signed-off-by: Rudi Grinberg <me@rgrinberg.com> * Revert "fix: make ignored rules fallback (#8706)" This reverts commit b326c30. Signed-off-by: Rudi Grinberg <me@rgrinberg.com> * Revert "fix: --ignore-promoted-rules should work on internal rules (#8518)" This reverts commit 853490b. Signed-off-by: Rudi Grinberg <me@rgrinberg.com> * test: promote Signed-off-by: Rudi Grinberg <me@rgrinberg.com> --------- Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Fixes #8703
This is a lighter change than the original in #8518.