databricks-cli/bundle/libraries
Pieter Noordhuis b451905b6e
Expand library globs relative to the sync root (#1756)
## Changes

Library glob expansion happens during deployment. Before that, all
entries that refer to local paths in resource definitions are made
relative to the _sync root_. Before #1694, they were made relative to
the _bundle root_. This PR didn't update the library glob expansion code
to use the sync root path.

If you were using the sync paths setting with library globs, the CLI
would fail to expand the globs because the code was using the wrong path
to anchor those globs.

This change fixes the issue.

## Tests

Manually confirmed that this fixes the issue reported in #1755.
2024-09-09 09:56:16 +00:00
..
testdata Refactor library to artifact matching to not use pointers (#1172) 2024-02-05 15:29:45 +00:00
expand_glob_references.go Expand library globs relative to the sync root (#1756) 2024-09-09 09:56:16 +00:00
expand_glob_references_test.go Expand library globs relative to the sync root (#1756) 2024-09-09 09:56:16 +00:00
helpers.go Do not treat empty path as a local path (#1717) 2024-08-26 10:03:56 +00:00
helpers_test.go Do not treat empty path as a local path (#1717) 2024-08-26 10:03:56 +00:00
libraries.go Do not treat empty path as a local path (#1717) 2024-08-26 10:03:56 +00:00
local_path.go Correctly mark PyPI package name specs with multiple specifiers as remote libraries (#1725) 2024-08-28 11:39:06 +00:00
local_path_test.go Correctly mark PyPI package name specs with multiple specifiers as remote libraries (#1725) 2024-08-28 11:39:06 +00:00
match_test.go Expand library globs relative to the sync root (#1756) 2024-09-09 09:56:16 +00:00
upload.go Expand library globs relative to the sync root (#1756) 2024-09-09 09:56:16 +00:00
upload_test.go Expand library globs relative to the sync root (#1756) 2024-09-09 09:56:16 +00:00
workspace_path.go Do not treat empty path as a local path (#1717) 2024-08-26 10:03:56 +00:00
workspace_path_test.go Refactor library to artifact matching to not use pointers (#1172) 2024-02-05 15:29:45 +00:00