mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
buildGoModule: check if vendor exists with deleteVendor
This commit is contained in:
parent
961aa31455
commit
cdd4547867
1 changed files with 7 additions and 2 deletions
|
@ -85,10 +85,15 @@ let
|
|||
runHook preBuild
|
||||
|
||||
if [ ${deleteFlag} == "true" ]; then
|
||||
rm -rf vendor
|
||||
if [ ! -d vendor ]; then
|
||||
echo "vendor folder does not exist, 'deleteVendor' is not needed"
|
||||
exit 10
|
||||
else
|
||||
rm -rf vendor
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -e vendor ]; then
|
||||
if [ -d vendor ]; then
|
||||
echo "vendor folder exists, please set 'vendorSha256 = null;' in your expression"
|
||||
exit 10
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue