Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/commit_flake_update.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -euo pipefail

FLAKE_INPUT=${FLAKE_INPUT:-""}

if ! git config --get user.name >/dev/null 2>&1 || \
[ "$(git config --get user.name)" = "" ] ||
! git config --get user.email >/dev/null 2>&1 || \
Expand All @@ -15,7 +17,7 @@ fi
current_commit="$(git rev-parse HEAD)"
export PRE_COMMIT_ALLOW_NO_CONFIG=1

nix flake update --accept-flake-config --commit-lock-file
nix flake update $FLAKE_INPUT --accept-flake-config --commit-lock-file
commit_after_update="$(git rev-parse HEAD)"

if [[ "$commit_after_update" = "$current_commit" ]]; then
Expand Down