databricks-cli/bundle/libraries
Andrew Nester 783e05c939
Do not treat empty path as a local path (#1717)
## 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
2024-08-26 10:03:56 +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 Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +00:00
expand_glob_references_test.go Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +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 Do not treat empty path as a local path (#1717) 2024-08-26 10:03:56 +00:00
local_path_test.go Do not treat empty path as a local path (#1717) 2024-08-26 10:03:56 +00:00
match_test.go Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +00:00
upload.go Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +00:00
upload_test.go Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +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