mirror of https://github.com/databricks/cli.git
5d9bc3b553
## Changes We perform a check during path translation that the path being referenced is contained in the bundle's sync root. If it isn't, it's not a valid remote reference. However, this doesn't apply to paths that are _always_ local, such as the artifact path. An artifact's build command is executed in its path. Files created by the artifact build (e.g. wheels or JARs) don't need to be in the sync root because they have a dedicated and different upload path into `${workspace.artifact_path}`. Therefore, this check that a path is contained in the bundle's sync root doesn't apply to artifact paths. This change modifies the structure of path translation to allow opting out of this check. Fixes #1927. ## Tests * Existing and new tests pass. * Manually confirmed that building and using a wheel built outside the sync root path works as expected. * No acceptance tests because we don't run build as part of validate. |
||
---|---|---|
.. | ||
generate | ||
loader | ||
mutator | ||
resources | ||
validate | ||
variable | ||
artifact.go | ||
artifacts_test.go | ||
bundle.go | ||
deployment.go | ||
experimental.go | ||
filename.go | ||
filename_test.go | ||
git.go | ||
lock.go | ||
lock_test.go | ||
presets.go | ||
resources.go | ||
resources_test.go | ||
root.go | ||
root_test.go | ||
sync.go | ||
target.go | ||
workspace.go | ||
workspace_test.go |