fix(ds-fr): Fix formatting

This commit is contained in:
Tom Hubrecht 2024-02-09 09:46:32 +01:00
parent c95908d0b3
commit 45618cb180

View file

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