databricks-cli/bundle/libraries
Andrew Nester 6a07e05e9b
Raise an error when there are multiple local libraries with the same basename used (#2382)
## Changes
It could happen that there are multiple artifacts defined in the bundle
which build and therefore deploy wheel packages with the same name. This
leads to conflict between these packages, they will overwrite each other
and therefore they should have different names instead

Fixes https://github.com/databricks/cli/issues/1674

Previous attempt (https://github.com/databricks/cli/pull/2297 +
https://github.com/databricks/cli/pull/2341) led to the breakage, this
PR fixes both issues.

## Tests
Added acceptance test
2025-02-27 16:32:50 +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 Raise an error when there are multiple local libraries with the same basename used (#2382) 2025-02-27 16:32:50 +00:00
expand_glob_references_test.go Modify SetLocation test utility to take full locations as argument (#1788) 2024-09-25 16:13:48 +00:00
filer.go Add validation mutator for volume `artifact_path` (#2050) 2025-01-02 17:23:15 +05:30
filer_test.go Add validation mutator for volume `artifact_path` (#2050) 2025-01-02 17:23:15 +05:30
filer_volume.go Add validation mutator for volume `artifact_path` (#2050) 2025-01-02 17:23:15 +05:30
filer_volume_test.go Add validation mutator for volume `artifact_path` (#2050) 2025-01-02 17:23:15 +05:30
filer_workspace.go Add DABs support for Unity Catalog volumes (#1762) 2024-12-02 21:18:07 +00:00
filer_workspace_test.go Add DABs support for Unity Catalog volumes (#1762) 2024-12-02 21:18:07 +00:00
helpers.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
helpers_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
libraries.go Do not treat empty path as a local path (#1717) 2024-08-26 10:03:56 +00:00
local_path.go Added support for pip options in environment dependencies (#1842) 2024-10-21 11:45:39 +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
path.go Use SetPermissions instead of UpdatePermissions when setting folder permissions based on top-level ones (#1822) 2024-10-29 12:06:38 +00:00
path_test.go Added validator for folder permissions (#1824) 2024-10-24 12:36:17 +00:00
same_name_libraries.go Raise an error when there are multiple local libraries with the same basename used (#2382) 2025-02-27 16:32:50 +00:00
upload.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
upload_test.go Remove bundle.{Seq,If,Defer,newPhase,logString}, switch to regular functions (#2390) 2025-02-27 11:41:58 +00:00