Commit 01be799
fix: Prevent local NuGet modules from running in CI PR builds
The build pipeline was incorrectly registering local NuGet modules when
running in CI on PR branches. This happened because:
1. The GitHub Actions workflow sets DOTNET_ENVIRONMENT=Development for
non-main branches (PRs)
2. IsDevelopment() returns true in this case
3. Local NuGet modules (which depend on PackagePathsParserModule) were
registered even though they're meant only for local development
The fix uses BuildSystemDetector.Instance.IsKnownBuildAgent to distinguish
between true local development (no CI system detected) and CI runs with
Development environment. Now:
- Local development: Registers local NuGet modules (dev machine, no CI)
- CI Production (main): Registers NuGet upload and release modules
- CI Development (PRs): Registers neither (just runs tests/build)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent ef8e766 commit 01be799
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
69 | | - | |
| 79 | + | |
70 | 80 | | |
| 81 | + | |
71 | 82 | | |
72 | 83 | | |
73 | 84 | | |
| 85 | + | |
74 | 86 | | |
75 | 87 | | |
76 | 88 | | |
| |||
0 commit comments