chore: allow SDK prerelease roll-forward in global.json#162
Conversation
Aligns with the template used across the other published-package repos (dotcov, ErrorOrX, qyl, ANcpLua.Agents, ANcpLua.Analyzers, ANcpLua.Roslyn.Utilities) so 10.0.4xx-preview can be picked up automatically when it lands. No behavioral change on stable 10.0.300. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
@coderabbitai autofix |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🧰 Additional context used📓 Path-based instructions (2)global.json📄 CodeRabbit inference engine (AGENTS.md)
Files:
.github/workflows/**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (2)
📝 WalkthroughWalkthroughThe PR consolidates .NET SDK version management from four hardcoded workflow job configurations into a single global.json source of truth. The 🚥 Pre-merge checks | ✅ 8✅ Passed checks (8 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Autofix skipped. No unresolved CodeRabbit review comments with fix instructions found. |
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Pull Request Overview
The pull request successfully updates the repository to use global-json-based SDK resolution in GitHub Actions, which simplifies version management. However, the specified SDK version '10.0.300' in global.json is too restrictive. Since .NET 10 is currently in early preview, it typically uses the '10.0.100' feature band. Using '300' alongside the 'latestFeature' roll-forward policy will prevent the SDK from being found on agents that only have standard preview installs. This issue should be resolved before merging to prevent CI failures.
Test suggestions
- Verify
global.jsoncontains theallowPrereleaseflag set to true - Verify GitHub Action jobs (lint_config, create_nuget, test, deploy) use the
global-json-fileparameter - Verify SDK resolution in CI via the
dotnet --infocommand
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
| "sdk": { | ||
| "rollForward": "latestFeature", | ||
| "version": "10.0.300" | ||
| "version": "10.0.300", |
There was a problem hiding this comment.
🔴 HIGH RISK
The SDK version '10.0.300' might be too restrictive. Since .NET 10 is in early preview, using the base feature band '10.0.100' is recommended to ensure the 'latestFeature' policy can successfully find available SDKs.
| "version": "10.0.300", | |
| "version": "10.0.100", |
There was a problem hiding this comment.
Pull request overview
Adds prerelease SDK roll-forward support and updates CI SDK setup to read from global.json.
Changes:
- Enables
allowPrereleasein rootglobal.json. - Switches NuGet publish workflow
setup-dotnetsteps from10.0.xtoglobal-json-file.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
global.json |
Allows prerelease SDKs during roll-forward resolution. |
.github/workflows/nuget-publish.yml |
Updates CI SDK installation to use the repository global.json. |
| - uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
| global-json-file: global.json |
| - uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
| global-json-file: global.json |
| - uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
| global-json-file: global.json |
| - uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
| global-json-file: global.json |
Summary
allowPrerelease: trueundersdkinglobal.jsonto match the template used across the other published-package repos (dotcov, ErrorOrX, qyl, ANcpLua.Agents, ANcpLua.Analyzers, ANcpLua.Roslyn.Utilities).Test plan
dotnet --infostill resolves 10.0.300 locally🤖 Generated with Claude Code
Summary by CodeRabbit