databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Do not treat empty path as a local path #1717

Closed andrewnester closed 1 month ago

andrewnester commented 1 month ago

Changes

Fixes issue introduced here https://github.com/databricks/cli/pull/1699 where PyPi packages were treated as local library.

The reason is that libraryPath returns an empty string as a path for PyPi packages and then IsLibraryLocal treated empty string as local path.

Both of these functions are fixed in this PR.

Tests

Added regression test