feature: add new dream-lock.json files to git

This commit is contained in:
DavHau 2022-03-06 00:05:13 +07:00
parent bc3c3820b0
commit 77763c957e

View File

@ -185,10 +185,15 @@ overrideUtils
writePureShellScriptBin "resolve"
[
pkgs.nix
pkgs.gitMinimal
]
''
cd $WORKDIR
${translator.translateBin} ${argsJsonFile}
if git rev-parse --show-toplevel &>/dev/null; then
echo "adding file to git: ${project.dreamLockPath}"
git add ${project.dreamLockPath}
fi
'';
# a script that produces and dumps the dream-lock json for a given source