chore(hooks): inherit common's pre-commit instead of redefining it #101
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/GOV-46-inherit-pre-commit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deletes this repo's local
pre-commitrecipe and configures common's instead. Tracked in GOV-46.Depends on
psa-systems/commonPR #22 and is stacked on this repo's PR #100 (chore/GOV-45-update-common-submodule), so review that one first. Merge order: common#22, then #100, then this.Why
Forking
pre-commitsilently opted this repo out of every change to it.check-tree-ownershiplanded in common's shared variants and reached only the repos that had not forked the recipe; it had to be hand-ported here in #100. The same applies to anything common adds next.What the fork encoded, and where it lives now
dev_imageviadocker run(nocompose.dev.ymlin this repo)pre_commit_mode := "docker"assets/tailwind-built.cssviaasset!()and the generator is a different containerpre_commit_prepare := "build-css"cargo clippy --all-targets --features server -- -D warningsclippy_args := "--all-targets --features server -- -D warnings"cargo check --features serverinstead ofcargo build --all-targetscompile_step := "check",compile_args := "--features server"cargo check --target wasm32-unknown-unknownwasm_check := "true"(no extra args needed)cargo test --features server --bin vervain-apptest_args := "--features server --bin vervain-app"One behavioral change
common's docker mode mounts per-user cargo volumes (
dev-vervain-apps-cargo-target-$USER); the fork mounted unsuffixed ones. The first run after this lands is a cold compile.It is also a latent fix. This repo already inherits common's
dev-clean, which only ever removed the suffixed names, sojust dev-cleancould not remove the volumes the fork actually created. After this change the two agree.Verification
just pre-commiton this branch runs the identical step list the fork ran, in the same order, and passes:build-css,cargo fmt --check,cargo clippy --all-targets --features server -- -D warnings,cargo check --features server,cargo check --target wasm32-unknown-unknown,cargo test --features server --bin vervain-app(102 passed), thencheck-tree-ownershipreporting the working tree fully owned by the host user.grep -cE '^pre-commit' justfilereturns 0.#GOV-46