Repository navigation
Conversation
Current implementation of module inclusion / exclusion can easily lead to silent conflicts between the glob patterns: - a module can exclude: **/sdk and include: depth1/sdk/* For BuildKit, this would lead to a priority for the exclusion, but can lead to weird Dagger behavior. This commit ensures that Dagger fails in case such occurence of conflict occurs Signed-off-by: Guillaume de Rouville <[email protected]>
69840cd to
174fb5d
Compare
|
I'm not sure we should prevent an exclude from overriding an include or vice versa. It can be used by the user to override a default pattern. |
|
This is a potential stopgap for #6902
I am not sure either, thanks for that example🙏 Maybe shall we just provide intelligible warning to the user, showing that some of them might conflict (with the extension of the provenance: which module have which inclusion / exclusion ?) cc @sipsma @jedevc WDYT ? |
|
This is not just about: The problem you saw in: Actually comes from a bug: So that Without that bug, there would be no conflict here. |
Current implementation of module inclusion / exclusion can easily lead to silent conflicts between glob patterns, during a
dagger install: #8042 (comment).For BuildKit, this would lead to a priority for the exclusion, leading to a weird failure on
dagger installThis commit ensures that Dagger fails with a readable explanation in case such occurence of conflict.
TODO: