databricks-cli/bundle/deploy
Pieter Noordhuis 7de7583b37
Make fileset take optional list of paths to list (#1684)
## Changes

Before this change, the fileset library would take a single root path
and list all files in it. To support an allowlist of paths to list (much
like a Git `pathspec` without patterns; see [pathspec](pathspec)), this
change introduces an optional argument to `fileset.New` where the caller
can specify paths to list. If not specified, this argument defaults to
list `.` (i.e. list all files in the root).

The motivation for this change is that we wish to expose this pattern in
bundles. Users should be able to specify which paths to synchronize
instead of always only synchronizing the bundle root directory.

[pathspec]:
https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec

## Tests

New and existing unit tests.
2024-08-19 15:15:14 +00:00
..
files Move to a single prompt during bundle destroy (#1583) 2024-07-24 13:02:19 +00:00
lock Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
metadata Stop tracking file path locations in bundle resources (#1673) 2024-08-13 12:50:15 +00:00
terraform Use precomputed terraform plan for `bundle deploy` (#1640) 2024-07-31 14:07:25 +00:00
filer.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state.go Add UUID to uniquely identify a deployment state (#1595) 2024-07-16 10:01:58 +00:00
state_pull.go Use `vfs.Path` for filesystem interaction (#1554) 2024-07-03 10:13:22 +00:00
state_pull_test.go Use `vfs.Path` for filesystem interaction (#1554) 2024-07-03 10:13:22 +00:00
state_push.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
state_push_test.go Move path field to bundle type (#1316) 2024-03-27 09:03:24 +00:00
state_test.go Make fileset take optional list of paths to list (#1684) 2024-08-19 15:15:14 +00:00
state_update.go Add UUID to uniquely identify a deployment state (#1595) 2024-07-16 10:01:58 +00:00
state_update_test.go Make fileset take optional list of paths to list (#1684) 2024-08-19 15:15:14 +00:00