Skip to content

Commit dc50de4

Browse files
committed
dx: improve dev workflow
1 parent f6c0ece commit dc50de4

File tree

4 files changed

+7
-37
lines changed

4 files changed

+7
-37
lines changed

.githooks/post-checkout

Lines changed: 0 additions & 22 deletions
This file was deleted.

.githooks/post-commit

Lines changed: 0 additions & 10 deletions
This file was deleted.

.mise.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ CARGO_BUILD_JOBS = "{{ num_cpus() }}"
2525
[tasks.setup]
2626
description = "One-time development environment setup"
2727
run = [
28-
"git config core.hooksPath .githooks",
29-
"git submodule update --init --recursive",
28+
"git config submodule.recurse true",
29+
"git config fetch.recurseSubmodules on-demand",
30+
"git submodule update --init --recursive --remote",
3031
"rustup component add rustfmt clippy rust-src rust-analyzer",
3132
"rustup toolchain install nightly --component rustfmt",
3233
"cargo fetch",

.serena/memories/suggested_commands.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414

1515
```bash
1616
mise trust && mise install
17-
mise run setup # Configures git hooks and initializes proto submodule
17+
mise run setup # Configures git and initializes proto submodule
1818
```
1919

2020
The setup task runs:
21-
- `git config core.hooksPath .githooks` - Use version-controlled hooks
22-
- `git submodule update --init --recursive` - Initialize proto submodule
21+
- `git config submodule.recurse true` - Auto-update submodules on git commands
22+
- `git config fetch.recurseSubmodules on-demand` - Auto-fetch submodule changes
23+
- `git submodule update --init --recursive --remote` - Initialize proto submodule
2324
- Installs rustfmt, clippy, and nightly toolchain
2425

2526
## Build Commands

0 commit comments

Comments
 (0)