You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
✨ Apply ignore patterns from Directory argument in dagger call #7832
However, if you specify a directory explicitly with dagger call, those patterns won’t be applied. Module authors need to continue setting views and tell end users to specify it next to the path.
If there are ignore patterns for a Directory type, the CLI can use them. If a view is passed, use it. But if not, use the ignore patterns from the argument.
I’m assuming that when a module author specifies ignore patterns in a directory argument it’s always desirable to apply those patterns to any directory. An example of that is a function that lints Python code. There’s only very specific file extensions that you’d want to filter here, as any others would unnecessarily invalidate the cache or upload more than it needs to.
If not, there’s the views escape hatch, however I’m not sure if views should continue to exist since they were created as a stopgap to enable filtering local directories, provided as input to the CLI. If we do remove views, then we need to think a bit more if there’s a need for an escape hatch or not.
Activity
jedevc commentedon Sep 24, 2024
Can we split out a separate issue for passing directories from a module to another module? Just so we have a place to track this?