From 973b050adf35d7ed6cf47a6aef0e337729fc2739 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Mon, 13 Jun 2022 19:46:08 +0800 Subject: [PATCH] fetcher: Make sure sources are writable before filtering .ds_store --- builder/fetch.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builder/fetch.sh b/builder/fetch.sh index 2de6b08..8c6bdb3 100644 --- a/builder/fetch.sh +++ b/builder/fetch.sh @@ -7,6 +7,7 @@ go mod download "$goPackagePath@$version" dir=$(go mod download --json "$goPackagePath@$version" | jq -r .Dir) -cp -r $dir $out +chmod -R +w $dir +find $dir -iname ".ds_store" | xargs -r rm -rf -find $out -iname ".ds_store" | xargs -r rm -r +cp -r $dir $out