databricks-cli/bundle/artifacts
Pieter Noordhuis 33c446dadd
Refactor library to artifact matching to not use pointers ()
## Changes

The approach to do this was:
1. Iterate over all libraries in all job tasks
2. Find references to local libraries
3. Store pointer to `compute.Library` in the matching artifact file to
signal it should be uploaded

This breaks down when introducing  because we can no longer track
unexported state across mutators. The approach in this PR performs the
path matching twice; once in the matching mutator where we check if each
referenced file has an artifacts section, and once during artifact
upload to rewrite the library path from a local file reference to an
absolute Databricks path.

## Tests

Integration tests pass.
2024-02-05 15:29:45 +00:00
..
whl Added exec.NewCommandExecutor to execute commands with correct interpreter () 2023-12-21 15:45:23 +00:00
all.go Upgraded Go version to 1.21 () 2023-08-15 13:50:40 +00:00
artifacts.go Refactor library to artifact matching to not use pointers () 2024-02-05 15:29:45 +00:00
autodetect.go Allow referencing local Python wheels without artifacts section defined () 2023-08-28 16:29:04 +00:00
build.go Auto detect Python wheel packages and infer build command () 2023-07-26 10:07:26 +00:00
infer.go Allow referencing local Python wheels without artifacts section defined () 2023-08-28 16:29:04 +00:00
upload.go Added support for artifacts building for bundles () 2023-07-25 13:35:08 +02:00