Skip to content

Commit 2ef6835

Browse files
max-sixtyclaude
andauthored
chore: Update worktrunk config to table format (PRQL#5631)
Co-authored-by: Claude <[email protected]>
1 parent a0b58ea commit 2ef6835

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.config/wt.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
# {{ worktree }} - Path to the new worktree
77
# {{ repo_root }} - Path to the main repository root
88

9+
# Post-start commands run in parallel after switching to a worktree
10+
[post-start]
911
# Seed compiled dependencies from main worktree using CoW (copy-on-write)
1012
# Copies essential files, skipping incremental build objects
1113
# Result: warm-start builds instead of cold compiles
1214
# macOS: uses cp -c (clonefile on APFS)
13-
# Linux: would need cp --reflink=auto
14-
post-start = """
15-
[ -d {{ repo_root }}/target/debug/deps ] && [ ! -e {{ worktree }}/target ] &&
16-
mkdir -p {{ worktree }}/target/debug/deps &&
17-
cp -c {{ repo_root }}/target/debug/deps/*.rlib {{ repo_root }}/target/debug/deps/*.rmeta {{ worktree }}/target/debug/deps/ 2>/dev/null;
18-
cp -cR {{ repo_root }}/target/debug/.fingerprint {{ repo_root }}/target/debug/build {{ worktree }}/target/debug/ 2>/dev/null;
19-
true
15+
deps = """
16+
[ -d {{ repo_root }}/target/debug/deps ] && [ ! -e target ] &&
17+
mkdir -p target/debug/deps &&
18+
cp -c {{ repo_root }}/target/debug/deps/*.rlib {{ repo_root }}/target/debug/deps/*.rmeta target/debug/deps/ &&
19+
cp -cR {{ repo_root }}/target/debug/.fingerprint {{ repo_root }}/target/debug/build target/debug/
2020
"""

0 commit comments

Comments
 (0)