databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Fixed incorrectly cleaning up python wheel dist folder #1656

Closed andrewnester closed 1 month ago

andrewnester commented 1 month ago

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