databricks-cli/bundle/artifacts
Andrew Nester 48ff18e5fc
Upload local libraries even if they don't have artifact defined (#1664)
## Changes
Previously for all the libraries referenced in configuration DABs made
sure that there is corresponding artifact section.
But this is not really necessary and flexible, because local libraries
might be built outside of dabs context.
It also created difficult to follow logic in code where we back
referenced libraries to artifacts which was difficult to fllow


This PR does 3 things:
1. Allows all local libraries referenced in DABs config to be uploaded
to remote
2. Simplifies upload and glob references expand logic by doing this in
single place
3. Speed things up by uploading library only once and doing this in
parallel

## Tests
Added unit + integration tests + made sure that change is backward
compatible (no changes in existing tests)

---------

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
2024-08-14 09:03:44 +00:00
..
whl Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +00:00
all.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
artifacts.go Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +00:00
autodetect.go Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +00:00
build.go Fix glob expansion after running a generic build command (#1662) 2024-08-07 14:47:03 +00:00
expand_globs.go Fix glob expansion after running a generic build command (#1662) 2024-08-07 14:47:03 +00:00
expand_globs_test.go Fix glob expansion after running a generic build command (#1662) 2024-08-07 14:47:03 +00:00
infer.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
prepare.go Stop tracking file path locations in bundle resources (#1673) 2024-08-13 12:50:15 +00:00
upload.go Upload local libraries even if they don't have artifact defined (#1664) 2024-08-14 09:03:44 +00:00