Skip to content

Commit

Permalink
fix: sequencer-sqlite Cargo.lock out of date (#2454)
Browse files Browse the repository at this point in the history
This file keeps going out of date. Add a pre-commit hook to check that
the lock files are out of date to reduce chances of CI failing.

- Add missing `--locked` to sequencer sqlite build on CI.
  • Loading branch information
sveitser authored Jan 14, 2025
1 parent 220df37 commit ed18183
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
cargo build --locked --release --workspace
- name: Build sequencer-sqlite
run: cargo build --release --manifest-path ./sequencer-sqlite/Cargo.toml --target-dir ./target
run: cargo build --locked --release --manifest-path ./sequencer-sqlite/Cargo.toml --target-dir ./target

- name: Build Espresso Dev Node
# Espresso Dev Node currently requires testing feature, so it is built separately.
Expand Down
14 changes: 14 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@
types_or = [ "rust" "toml" ];
pass_filenames = false;
};
cargo-lock = {
enable = true;
description = "Ensure Cargo.lock is compatible with Cargo.toml";
entry = "cargo update --workspace --verbose";
types_or = [ "toml" ];
pass_filenames = false;
};
cargo-lock-sqlite = {
enable = true;
description = "Ensure Cargo.lock is compatible with Cargo.toml";
entry = "cargo update --manifest-path sequencer-sqlite/Cargo.toml --workspace --verbose";
types_or = [ "toml" ];
pass_filenames = false;
};
forge-fmt = {
enable = true;
description = "Enforce forge fmt";
Expand Down
53 changes: 27 additions & 26 deletions sequencer-sqlite/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ed18183

Please sign in to comment.