fix(rust/builders): remove IFD while using writeCargoLock

This commit is contained in:
Yusuf Bera Ertan 2022-05-18 19:13:40 +03:00
parent a4c4b64bd7
commit 00bef62ae7
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -37,7 +37,7 @@ in rec {
# Script to write the Cargo.lock if it doesn't already exist.
writeCargoLock = ''
if [ ! -f "$PWD/Cargo.lock" ]; then
cp -v ${cargoLock} "$PWD/Cargo.lock"
echo '${cargoLock}' > "$PWD/Cargo.lock"
fi
'';
@ -96,5 +96,5 @@ in rec {
);
lock = {inherit package;};
in
l.toFile "Cargo.lock" (utils.toTOML lock);
utils.toTOML lock;
}