databricks-cli/bundle/artifacts/whl
Andrew Nester d26f3f4863
Fixed incorrectly cleaning up python wheel dist folder (#1656)
## Changes
In https://github.com/databricks/cli/pull/1618 we introduced prepare
step in which Python wheel folder was cleaned. Now it was cleaned
everytime instead of only when there is a build command how it is used
to work.

This PR fixes it by only cleaning up dist folder when there is a build
command for wheels.

Fixes #1638 

## Tests
Added regression test
2024-08-06 09:54:58 +00:00
..
testdata Auto detect Python wheel packages and infer build command (#603) 2023-07-26 10:07:26 +00:00
autodetect.go Expand and upload local wheel libraries for all task types (#1649) 2024-08-05 14:44:23 +00:00
autodetect_test.go Auto detect Python wheel packages and infer build command (#603) 2023-07-26 10:07:26 +00:00
build.go Split artifact cleanup into prepare step before build (#1618) 2024-07-24 09:13:49 +00:00
from_libraries.go Expand and upload local wheel libraries for all task types (#1649) 2024-08-05 14:44:23 +00:00
infer.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
prepare.go Fixed incorrectly cleaning up python wheel dist folder (#1656) 2024-08-06 09:54:58 +00:00