diff --git a/machines/compute01/ds-fr/package/update.sh b/machines/compute01/ds-fr/package/update.sh index 27d001a..0d20fae 100755 --- a/machines/compute01/ds-fr/package/update.sh +++ b/machines/compute01/ds-fr/package/update.sh @@ -39,22 +39,16 @@ else version="$(git rev-parse HEAD)" fi -echo "[+] ds-fr version:" -echo "- $version" - # Generate gemset.nix -echo "[+] Updating gem files" nix-shell -p bundix --run "bundix -l" >/dev/null # Copy the new files cp gemset.nix Gemfile Gemfile.lock "$CWD/rubyEnv/" # Print the new source details -echo "[+] New hash:" SRC_HASH=$(nix-shell -p nurl --run "nurl --hash $gitUrl $version") # Print Yarn deps hash -echo "[+] New dependencies hash:" hash=$(nix-shell -p prefetch-yarn-deps --run "prefetch-yarn-deps yarn.lock") DEPS_HASH=$(nix-hash --to-sri --type sha256 "$hash") @@ -67,6 +61,6 @@ cat <"$CWD/meta.nix" } EOF -nixfmt . +nixfmt "$CWD" rm -rf "$TMP"