databricks-cli/bundle/artifacts
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
..
whl Fixed incorrectly cleaning up python wheel dist folder (#1656) 2024-08-06 09:54:58 +00:00
all.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
artifacts.go Split artifact cleanup into prepare step before build (#1618) 2024-07-24 09:13:49 +00:00
artifacts_test.go Allow artifacts (JARs, wheels) to be uploaded to UC Volumes (#1591) 2024-07-16 08:57:04 +00:00
autodetect.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
build.go Split artifact cleanup into prepare step before build (#1618) 2024-07-24 09:13:49 +00:00
infer.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
prepare.go Split artifact cleanup into prepare step before build (#1618) 2024-07-24 09:13:49 +00:00
upload.go Allow artifacts (JARs, wheels) to be uploaded to UC Volumes (#1591) 2024-07-16 08:57:04 +00:00
upload_test.go Split artifact cleanup into prepare step before build (#1618) 2024-07-24 09:13:49 +00:00