Uh oh!
There was an error while loading. Please reload this page.
Add --exclude-from and --include-from flags to sync command - #2660
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pietern
left a comment
There was a problem hiding this comment.
I expect --include-from to be almost identical, could you include it in this PR?
Separately, I would prefer if we not use .databricksignore even in our test files. It implies (to me) there are semantics associated with this file name, even though that's something we explicitly don't want.
6ba54a9 to
76acd9bCompare…isting / missing) 2) refers to exact directory (existing / missing) 3) contains "**"
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
## Release v0.249.0 ### CLI * Added `exclude-from` and `include-from` flags support to sync command ([#2660](#2660)) ### Bundles * Correctly translate paths to local requirements.txt file in environment dependencies ([#2736](#2736)) * Check for running resources with --fail-on-active-runs before any mutative operation during deploy ([#2743](#2743))
## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> Exclude-from flag allows users to exclude file patterns from sync operations by providing a .gitignore -like file containing file patterns that should be excluded from sync Usage: `$ databricks sync <SRC> <DEST> --exclude-from .my-exclude-file` `$ databricks sync <SRC> <DEST> --include-from .my-include-file` ## Tests <!-- How have you tested the changes? --> 1. Added new acceptance tests 2. Added new unit test <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
## Release v0.249.0 ### CLI * Added `exclude-from` and `include-from` flags support to sync command ([#2660](#2660)) ### Bundles * Correctly translate paths to local requirements.txt file in environment dependencies ([#2736](#2736)) * Check for running resources with --fail-on-active-runs before any mutative operation during deploy ([#2743](#2743))
Why
Exclude-from flag allows users to exclude file patterns from sync operations by providing a .gitignore -like file containing file patterns that should be excluded from sync
Usage:
$ databricks sync <SRC> <DEST> --exclude-from .my-exclude-file$ databricks sync <SRC> <DEST> --include-from .my-include-fileTests