@cratis/pi 8.2.0 → 8.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,3 +9,10 @@
9
9
  branch.
10
10
  - A worktree costs its build output, not its source (gigabytes of `bin`, `obj`, `node_modules`). Build only the projects the lane changed, and let `cratis-cleanup-worktrees.sh` reclaim an idle lane's output.
11
11
  - Run builds and tests only through the gate command in the brief.
12
+
13
+ ## Build cost per worktree
14
+
15
+ - **Build and test the project you changed, not the solution.** `dotnet build path/to/Project.csproj` (and `dotnet test` on it) builds only that project and its `ProjectReference` closure; building the solution builds every project. Incremental build does not help here: it skips unchanged work inside one tree, but a new worktree starts with no `bin/` or `obj/`, so its first solution build compiles and copies everything.
16
+ - **Hardlinked output.** Where projects copy their dependencies next to themselves (executables and test hosts), `CreateHardLinksForCopyLocalIfPossible`, `CreateHardLinksForCopyFilesToOutputDirectoryIfPossible` and `CreateHardLinksForAdditionalFilesIfPossible` set to `true` (environment variables work) make each copy a hardlink instead of a full file copy. It only links within one volume, so keep the NuGet package folder (`globalPackagesFolder` in `NuGet.config`, or `NUGET_PACKAGES`) on the same volume as the worktrees; otherwise MSBuild silently copies. Verify with disk free before and after a build: `du` counts a linked file once per directory and overstates.
17
+ - **Never write through copied output.** With hardlinks, editing a file in `bin/` in place changes the NuGet cache entry or the other project's output too. Signing or patching steps must write a new file.
18
+ - Keep the setting out of CI: runners build once, and package caches there are often on a different filesystem.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [