ensure we can remove _output

This commit is contained in:
Benjamin Elder 2023-04-20 17:04:01 -07:00
parent 0251dde788
commit 7a14c5ad6d

View File

@ -367,6 +367,8 @@ function kube::build::clean() {
if [[ -d "${LOCAL_OUTPUT_ROOT}" ]]; then
kube::log::status "Removing _output directory"
# this ensures we can clean _output/local/go/cache which is not rw by default
chmod -R +w "${LOCAL_OUTPUT_ROOT}"
rm -rf "${LOCAL_OUTPUT_ROOT}"
fi
}