mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-09 12:09:08 +00:00
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)
|
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