Repository navigation
Revert to same version of System.CommandLine as 6.0.1xx. - #23380
Conversation
| <MicrosoftDeploymentDotNetReleasesVersion>1.0.0-preview1.1.21112.1</MicrosoftDeploymentDotNetReleasesVersion> | ||
| <SystemManagementPackageVersion>4.6.0</SystemManagementPackageVersion> | ||
| <SystemCommandLineVersion>2.0.0-beta1.21601.2</SystemCommandLineVersion> | ||
| <SystemCommandLineVersion>2.0.0-beta1.21473.1</SystemCommandLineVersion> |
There was a problem hiding this comment.
The command-line-api entries in Version.Details.xml need to be updated accordingly as well with this version. Utilizing darc update-dependencies is a good way to ensure all entries are updated correctly.
|
@dsplaisted I think templating needs to be on the same system.command line first as well. They are currently on 2.0.0-beta1.21525.1 in their 6.0.200 branch. |
|
@dsplaisted @MichaelSimons The darwin and source build legs have build failures installing 1.0.5. That is excluded from ubuntu with this line: Line 23 in 32ce7ae Did the underlying images change that those legs used such that they no longer support 1.0.5? |
I can revert templating 6.0.2xx branch to same version (2.0.0-beta1.21473.1) |
| else if (command.Name.Equals(NewCommandParser.GetCommand().Name)) | ||
| { | ||
| NewCommandShim.Run(context.ParseResult.GetArguments()); | ||
| NewCommandShim.Run(helpArgs); |
There was a problem hiding this comment.
this fix is still needed. dotnet new --help and dotnet new console --help are different commands. Passing just --help to dotnet new is not enough.
There was a problem hiding this comment.
we dug into this some more - on its face this seems wrong for dotnet new (and any command with subcommands) but it turns out that in this revert the whole issue is sidestepped by the way the built-in commands are invoked in Program.cs. If a built-in command is detected then Program.cs forwards along the entire parseResult argument array to that command, which for dotnet new results in the correct help being returned, despite what this if block would suggest. I've tested this branch locally to ensure this is the case, and we do get template-specific help when dotnet.dll new console --help is invoked.
Therefore, I suggest that we delete this else if entirely for clarity reasons on this 6.0.2xx branch. See the linked suggestion
There was a problem hiding this comment.
We checked it more closely with @baronfel, due to other changes in Program.cs this code is not used anymore. Any dotnet new command is redirected to NewCommandShim as it is part of BuiltInCommand.
However, the code is still invalid. I would recommend to remove this if branch as once this code becomes reachable the bug discovered in #23162 will come back.
The docker images used in the SB leg has not changed. This logic is busted for distros such as centos, fedora, etc. Why is this check necessary? If it is needed for certain scenarios, why not utilize an explicit setting to enable? |
| else if (command.Name.Equals(NewCommandParser.GetCommand().Name)) | ||
| { | ||
| NewCommandShim.Run(context.ParseResult.GetArguments()); | ||
| NewCommandShim.Run(helpArgs); | ||
| } |
There was a problem hiding this comment.
This whole range can be deleted due to https://github.com/dotnet/sdk/pull/23380/files#r783164794
| else if (command.Name.Equals(NewCommandParser.GetCommand().Name)) | |
| { | |
| NewCommandShim.Run(context.ParseResult.GetArguments()); | |
| NewCommandShim.Run(helpArgs); | |
| } |
@vlada-shubina Yes, can you go ahead and do this? |
Reverting this change that was put in with the last system command line codeflow.
|
@dotnet/kitten Three of the test failures were accessviolations that may be coming from msbuild. Have ya'll seen reports of this? 3 |
|
We actually had an AV come up recently, and we suspected it was antivirus software. Is there a dump of the problem somewhere? |
|
It should be almost impossible to get that from managed code. |
|
@dsplaisted is this good to go? |
|
Ah, Daniel's out - @marcpopMSFT were your concerns fixed by the last commit? |
|
@wtgodbe merged since it passed but the msbuild folks should be aware that there may be some instability if this happens again. |
Reverts #22351