Skip to content

Commit

Permalink
chore: flakebox install to update repo files
Browse files Browse the repository at this point in the history
  • Loading branch information
taliyahwebb committed Aug 8, 2024
1 parent 254ac8f commit 8974323
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .config/flakebox/id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5e63b3c66130781b6e9605fd52eeb5e763b0f6310a3ae6fc794681383705c1085dbb7f58a08beb634dc46afb76cb4818ed3440125f3d07652277b1d37757ce8d
7200339fe6ce75f471fec8c0b078733ec043a943d7d0829639f30d6be19e348eaa89ddcf6bbecf90b1ccbbb90fe1fc6ba305166b082c852d4c9079ff30880741
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ format:
cd {{invocation_directory()}}
fi
cargo fmt --all
nixpkgs-fmt $(echo **.nix)
nixpkgs-fmt $(git ls-files | grep "\.nix$")

# run lints (git pre-commit hook)
Expand Down
2 changes: 1 addition & 1 deletion misc/git-hooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ MESSAGE="$(
MESSAGE="${MESSAGE#fixup! }"
if ! convco check --from-stdin <<<"$MESSAGE" ; then
>&2 echo "Please follow conventional commits(https://www.conventionalcommits.org)"
>&2 echo "Use git recommit <args> to fix your commit"
>&2 echo "Use git commit <args> to fix your commit"
exit 1
fi
2 changes: 1 addition & 1 deletion misc/git-hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function check_cargo_lock() {
set -euo pipefail

# https://users.rust-lang.org/t/check-if-the-cargo-lock-is-up-to-date-without-building-anything/91048/5
flakebox-in-each-cargo-workspace cargo update --workspace --locked
flakebox-in-each-cargo-workspace cargo update --workspace --locked |& while read -r note ; do echo "$note (cargo)"; done

}
export -f check_cargo_lock
Expand Down

0 comments on commit 8974323

Please sign in to comment.