File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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"""
You can’t perform that action at this time.
0 commit comments