From 7a14c5ad6dda1d9b2ace20506f0e70bd0a00288b Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Thu, 20 Apr 2023 17:04:01 -0700 Subject: [PATCH] ensure we can remove _output --- build/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/common.sh b/build/common.sh index 05e79e2b8d62..43bbe97e1a72 100755 --- a/build/common.sh +++ b/build/common.sh @@ -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 }