Skip to content

Scope the validator roll-forward variables with Proc.Fs withEnv - #114

Merged
Mpdreamz merged 1 commit into
mainfrom
chore/proc-fs-idioms
Nov 27, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
chore/proc-fs-idioms

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

The package validation target sets the .NET roll-forward variables only for the nupkg-validator commands, instead of for the rest of the build process.

Prompt summary: Move the nullean build scripts onto the current Proc.Fs idioms after the Runna.Fs swap.

Why

validatepackages called Environment.SetEnvironmentVariable for DOTNET_ROLL_FORWARD and DOTNET_ROLL_FORWARD_TO_PRERELEASE. Both stayed set for every command that ran after it in the same process.

What

Scoped environment

The validate loop runs in a shell { } block that opens withEnv [...]. The two variables apply to each nupkg-validator command and are restored when the block ends. The validator still rolls forward to the newest installed runtime.

Verify

dotnet run --project build/scripts -- generatepackages -s
dotnet run --project build/scripts -- validatepackages -s

Both pass locally. Without the variables the validator also passes on my machine, which has the net11.0 runtime, so that run does not prove the variables matter. I checked separately in dotnet fsi that withEnv reaches the child process and is gone after the block.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Mpdreamz Mpdreamz added the chore Internal change, no user-visible effect (patch) label Nov 27, 2026
@Mpdreamz
Mpdreamz enabled auto-merge (squash) November 27, 2026 10:59
@Mpdreamz
Mpdreamz merged commit 87767de into main Nov 27, 2026
10 checks passed
@Mpdreamz
Mpdreamz deleted the chore/proc-fs-idioms branch November 27, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Internal change, no user-visible effect (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant