Merge pull request #117510 from BenTheElder/clean-fun

ensure we can remove _output
This commit is contained in:
Kubernetes Prow Robot 2023-04-20 19:15:22 -07:00 committed by GitHub
commit 76a94fd836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}