Capture module prerelease in module information#213
Conversation
Code ReviewThis is a clean, well-scoped addition. The implementation is straightforward and the test coverage covers the two happy-path scenarios described in the PR. A few observations below. Minor issues1. Scalar field read via array API (
// Using TryGetPsDataStringArray because no scalar-specific overload exists;
// Prerelease is always a single-value string in practice.2. Missing test: both locations present (precedence)
3. Missing test: no prerelease present → There is no assertion that 4. Temp directory not cleaned up (
5. Empty-string prerelease not guarded If a manifest has What looks good
Since this is still a draft, these are all low-priority observations rather than blockers. The core logic is sound. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
ModuleInformationModuleInformationReaderto read prerelease fromPrivateData.PSData.Prereleasewith top-level fallbackVerification
dotnet build .\PowerForge.PowerShell\PowerForge.PowerShell.csproj -c Release -f net10.0 --no-restoredotnet test .\PowerForge.Tests\PowerForge.Tests.csproj -c Release -f net10.0 --filter "FullyQualifiedName~ModuleInformationReaderTests" --no-restore -p:BuildProjectReferences=falseNotes
net472IsExternalInitfailure inPublishVerificationHostService, so verification is scoped to the focusednet10.0path here.