Skip to content

chore: lockfile lefthook#4647

Merged
NathanFlurry merged 1 commit intomainfrom
04-13-chore_lockfile_lefthook
Apr 24, 2026
Merged

chore: lockfile lefthook#4647
NathanFlurry merged 1 commit intomainfrom
04-13-chore_lockfile_lefthook

Conversation

@NathanFlurry
Copy link
Copy Markdown
Member

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Copy link
Copy Markdown
Member Author

NathanFlurry commented Apr 13, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@claude
Copy link
Copy Markdown

claude Bot commented Apr 13, 2026

PR Review: chore: lockfile lefthook

Overview: Adds pre-commit lockfile validation hooks, fixes pnpm-lock.yaml to use workspace resolution for @rivetkit/engine-api-full (was pinned to a PR preview URL), removes a stale Cargo workspace dep, and fixes a Rust formatting issue.

Strengths:

  • cargo-lock and pnpm-lock pre-commit hooks catch lockfile drift early.
  • pnpm hook uses --frozen-lockfile --ignore-scripts: strict consistency and no postinstall script execution.
  • Switching @rivetkit/engine-api-full from a pkg.pr.new PR preview URL to workspace:* is important since that URL can disappear.
  • database.rs formatting correctly aligns .map_err() with the method chain.

Concerns:

  1. sqlite-vfs package conflicts with CLAUDE.md

The lockfile now includes rivetkit-typescript/packages/sqlite-vfs with @rivetkit/sqlite and @rivetkit/sqlite-vfs as dependencies. CLAUDE.md says not to add @rivetkit/sqlite, @rivetkit/sqlite-vfs, or other WebAssembly SQLite fallbacks. If this package is intentional (e.g., an internal implementation package), CLAUDE.md should be updated with the exception and reasoning to avoid confusion for future contributors.

  1. No glob filters on lockfile hooks

Neither hook has a glob: filter so both run on every commit. cargo metadata --locked is fast, but pnpm install --frozen-lockfile can be slow on cold node_modules. Scoping the hooks to only fire when Cargo manifests or package.json files change would reduce friction on unrelated commits.

  1. Verify Cargo workspace dep removal is safe

Removing [workspace.dependencies.rivetkit-sqlite-native] will break the build if any Cargo.toml still references rivetkit-sqlite-native.workspace = true. A grep across .toml files would confirm it is safe to drop.

  1. Minor: remaining typo

The TODO comment still reads figrue instead of figure. Low priority since you are already touching this line.

Summary:

  • Lockfile hooks: good idea, minor concern without glob filters
  • engine-api-full workspace resolution: correct fix
  • sqlite-vfs package: conflicts with CLAUDE.md -- update docs if intentional
  • Cargo workspace dep removal: verify no remaining consumers
  • Rust formatting: clean fix

@NathanFlurry NathanFlurry force-pushed the fix/surface-native-sqlite-kv-errors branch from f9a5fe1 to 98a33e4 Compare April 24, 2026 07:33
@NathanFlurry NathanFlurry force-pushed the 04-13-chore_lockfile_lefthook branch from 975f858 to 258991d Compare April 24, 2026 07:33
Base automatically changed from fix/surface-native-sqlite-kv-errors to main April 24, 2026 07:38
@NathanFlurry NathanFlurry merged commit 258991d into main Apr 24, 2026
21 of 33 checks passed
@NathanFlurry NathanFlurry deleted the 04-13-chore_lockfile_lefthook branch April 24, 2026 07:39
This was referenced Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant