Closed andrewnester closed 1 month ago
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.
libraryPath
IsLibraryLocal
Both of these functions are fixed in this PR.
Added regression test
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 thenIsLibraryLocal
treated empty string as local path.Both of these functions are fixed in this PR.
Tests
Added regression test