databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Expand library globs relative to the sync root #1756

Closed pietern closed 3 weeks ago

pietern commented 3 weeks ago

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.