forked from mirrors/gomod2nix
fetcher: Make sure sources are writable before filtering .ds_store
This commit is contained in:
parent
1eb70073c4
commit
973b050adf
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue