forked from DGNum/infrastructure
fix(ds-fr): Fix formatting
This commit is contained in:
parent
c95908d0b3
commit
45618cb180
1 changed files with 1 additions and 7 deletions
|
@ -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 <<EOF >"$CWD/meta.nix"
|
|||
}
|
||||
EOF
|
||||
|
||||
nixfmt .
|
||||
nixfmt "$CWD"
|
||||
|
||||
rm -rf "$TMP"
|
||||
|
|
Loading…
Reference in a new issue