databricks-cli/bundle/libraries
Pieter Noordhuis ceefa80d72
Pass copy of `dyn.Path` to callback function (#1747)
## Changes

Some call sites hold on to the `dyn.Path` provided to them by the
callback. It must therefore never be mutated after the callback returns,
or these mutations leak out into unknown scope.

This change means it is no longer possible for this failure mode to
happen.

## Tests

Unit test.
2024-09-05 11:05:16 +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 Pass copy of `dyn.Path` to callback function (#1747) 2024-09-05 11:05:16 +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 Correctly mark PyPI package name specs with multiple specifiers as remote libraries (#1725) 2024-08-28 11:39:06 +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 Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +00:00
upload.go Pass copy of `dyn.Path` to callback function (#1747) 2024-09-05 11:05:16 +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