Skip to content

Conversation

@adamsitnik
Copy link
Member

required to unblock dependencies flow: dotnet/installer#14991

@ghost
Copy link

ghost commented Nov 18, 2022

Tagging subscribers to this area: @dotnet/area-system-console
See info in area-owners.md if you want to be subscribed.

Issue Details

required to unblock dependencies flow: dotnet/installer#14991

Author: adamsitnik
Assignees: -
Labels:

area-System.Console

Milestone: -

<!-- Not auto-updated. -->
<MicrosoftDiaSymReaderNativeVersion>16.9.0-beta1.21055.5</MicrosoftDiaSymReaderNativeVersion>
<SystemCommandLineVersion>2.0.0-beta4.22355.1</SystemCommandLineVersion>
<SystemCommandLineVersion>2.0.0-beta4.22564.1</SystemCommandLineVersion>
Copy link
Member

@jkotas jkotas Nov 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.CommandLine is also listed in https://github.com/dotnet/runtime/blob/main/eng/Version.Details.xml#L83-L86 . Do we need to update it there as well?

Also, it does not sound right that this is in the "Not auto-updated." block. I would think that everything in Version.Details.xml is auto-updated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have a subscription set up to auto-update System.CommandLine, and as a result the entry in Version.Details.xml doesn't actually do anything. We can add a subscription though and make this auto-update.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add a subscription though and make this auto-update.

@jkoritzinsky Could you please add it?

I see that dotnet/sdk has a System.CommandLine subscription (dotnet/sdk#29131). We need to be on a plan where all repos contributing to a product have a subscription for a thing, or none have a subscription. Otherwise, we will end up with build breaks in source-build leg when the bits meet in the installer.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After this PR is merged, I'll create and enable a subscription for System.CommandLine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subscription for System.CommandLine.

Btw, it's pulled from dotnet-libraries feed in NuGet.config at root.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add it?

We are definitely going to do that, but when the time comes. Currently we are merging too many small breaking changes into S.CL. We would need to update SDK/runtime once a day to account for that.

My current plan is to gather a big batch of breaking changes (there will be a blocked PR in the SDK repo with dependencies update), get the first part of S.CL API approved by the API Review Board and then merge the changes into SDK and runtime.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, we need to disable the System.CommandLine subscription in dotnet/sdk then. Otherwise, there are going to be regular build breaks in dotnet/sdk and dotnet/installer.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At one time S.CL was also flowing into Templating. Please make sure any other subscriptions are also disabled.

@jkotas
Copy link
Member

jkotas commented Nov 19, 2022

More places need fixing - build breaks in src/coreclr/tools/dotnet-pgo/PgoRootCommand.cs

@am11
Copy link
Member

am11 commented Nov 19, 2022

Yes, for all these:

src/coreclr/tools/ILVerify/Program.cs:        private T Get<T>(Option<T> option) => _command.Result.GetValueForOption(option);
src/coreclr/tools/ILVerify/Program.cs:        private T Get<T>(Argument<T> argument) => _command.Result.GetValueForArgument(argument);
src/coreclr/tools/aot/ILCompiler/Program.cs:        private T Get<T>(Option<T> option) => _command.Result.GetValueForOption(option);
src/coreclr/tools/aot/crossgen2/Program.cs:        private T Get<T>(Option<T> option) => _command.Result.GetValueForOption(option);
src/coreclr/tools/dotnet-pgo/Program.cs:        private T Get<T>(Option<T> option) => _command.Result.GetValueForOption(option);
src/coreclr/tools/dotnet-pgo/Program.cs:        private T Get<T>(Argument<T> argument) => _command.Result.GetValueForArgument(argument);
src/coreclr/tools/r2rdump/Program.cs:        private T Get<T>(Option<T> option) => _command.Result.GetValueForOption(option);

GetValueForOption/GetValueForArgument -> GetValue.

@adamsitnik
Copy link
Member Author

adamsitnik commented Nov 21, 2022

More places need fixing

I've been running build.cmd -c Release until there were no errors. I'll build more subsets and fix the remaining errors, sorry for the noise.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jkotas jkotas merged commit b4d99b8 into dotnet:main Nov 21, 2022
@jkoritzinsky
Copy link
Member

@jkotas @adamsitnik I've created a darc subscription for System.CommandLine and disabled it. The id for the subscription is ea3cac0b-22e5-4890-173b-08dac8186193

@ghost ghost locked as resolved and limited conversation to collaborators Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants