-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[macOS] Delete DOTNET_ROOT environment variable #13380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[macOS] Delete DOTNET_ROOT environment variable #13380
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes the DOTNET_ROOT environment variable from macOS runner images and adds two new .NET configuration environment variables to improve consistency with Ubuntu images. Since .NET is installed in the default location (~/.dotnet), setting DOTNET_ROOT is unnecessary and can interfere with users who want to use different .NET versions via GitHub Actions' setup-dotnet or Azure DevOps' UseDotNet@2 tasks.
- Removes
DOTNET_ROOT=$HOME/.dotnetenvironment variable - Adds
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1andDOTNET_NOLOGO=1environment variables to match Ubuntu image configuration - Maintains
DOTNET_MULTILEVEL_LOOKUP=0to prevent searching for .NET installations in multiple locations
|
I think this is a great change and moves towards the correct behavior. With that said, I believe this is a breaking change. Does the runner-images team have an A-B, or safer rollout mechanism which requires an image upgrade? Basically, before the bashrc file force overrode DOTNET_ROOT to the This will certainly cause live failures in CI as many folks set DOTNET_ROOT. Again, this is the correct behavior, but we should shift to this gently. |
I think this change will be around for a while. It'll likely hit our images in the second half of January or somewhere around, after the announcement. |
|
#13470 It looks like this is still being done - why was this PR closed, is there a new PR? |
|
I'll reopen it later - my clean-up workflow deleted feature branch. 😄 |
| export RCT_NO_LAUNCH_PACKAGER=1 | ||
| export DOTNET_ROOT=$HOME/.dotnet | ||
| export DOTNET_MULTILEVEL_LOOKUP=0 | ||
| export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to set DOTNET_SKIP_FIRST_TIME_EXPERIENCE?
This environment variable was removed in .NET Core 3.0.
The last supported version was .NET Core 2.2 which is EOL since December 23, 2019
Starting from .NET Core 3.0 the ENV DOTNET_NOLOGO should be used (docs) which is set the next line.
Description
Related issue:
#13365
Check list