Skip to content

change: never ignore promote until-clean under -p - #8721

Closed
emillon wants to merge 4 commits into
ocaml:mainfrom
emillon:promote-ignore-always
Closed

emillon wants to merge 4 commits into
ocaml:mainfrom
emillon:promote-ignore-always

Conversation

@emillon

@emillon emillon commented Sep 21, 2023

Copy link
Copy Markdown
Collaborator

This extends #5956 to all versions of (lang dune), since this is a property of the CLI.

@emillon
emillon requested a review from rgrinberg September 21, 2023 09:04
This extends ocaml#5956 to all versions of `(lang dune)`, since this is a
property of the CLI.

Signed-off-by: Etienne Millon <[email protected]>
@rgrinberg

Copy link
Copy Markdown
Member

Isn't this exactly what I've tried here? #8512 It didn't work because it indeed broke stuff downstream.

Instead of filtering, I thought we agreed to turn them into fallback instead.

@emillon

emillon commented Sep 21, 2023

Copy link
Copy Markdown
Collaborator Author

Ah yes I was not sure if you meant to make these rules fallback too. I just updated the PR but there's a test failing:

;; More complex test

(rule
 (target into+ignoring)
 (mode (promote (into subdir)))
 (action (with-stdout-to %{target} (echo "hello"))))

(rule
 (target into+ignoring)
 (enabled_if %{ignoring_promoted_rules})
 (action (copy subdir/into+ignoring into+ignoring)))

I think it's invalid now, but it's probably a smaller repro of some existing package. WDYT?

@rgrinberg

Copy link
Copy Markdown
Member

I think it's invalid now, but it's probably a smaller repro of some existing package. WDYT?

Isn't this basically a manually created fallback rule?

@rgrinberg

Copy link
Copy Markdown
Member

In any case, given that this variable exists (though it seems to be used) I feel like this change is big enough that perhaps we should save this all until 4.0?

@emillon

emillon commented Sep 21, 2023

Copy link
Copy Markdown
Collaborator Author

Agree. Let's keep #8706 though for 3.11.

@rgrinberg

Copy link
Copy Markdown
Member

What's the rush to get it out for 3.11? The bug fix is basically incomplete so this fix helps nobody still. Moreover, it introduces a confusing behavior

@emillon

emillon commented Sep 21, 2023

Copy link
Copy Markdown
Collaborator Author

What about generated opam files that now fail because of #8518? Do we call that an intended breakage?

@rgrinberg

Copy link
Copy Markdown
Member

I'm reverting that as well.

@emillon emillon closed this Sep 26, 2023
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

Successfully merging this pull request may close these issues.

2 participants