Skip to content
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

[Backport] Workload Clean for 8.0 Preview 3 #31411

Merged

Conversation

nagilson
Copy link
Member

@nagilson nagilson commented Mar 23, 2023

Backport of #30266
Same code as that one.

…s? confirm.) So that it doesnt show up in list. Will not impact existing packs deleted before this commit
…gs for clean that are installed under clean all
nagilson and others added 19 commits February 16, 2023 11:10
…l feature bands instead of <=, and the error message.
…t does every band. Because we have v1 in the folder we can change the architecture based on that, instead of worrying about a future breaking change
…lean. Include dotnetDir with newer info changes.
… with an if check instead of in the interface as it would be more confusing to have an msi api in a file based interface
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Mar 23, 2023
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@nagilson nagilson added Area-Workloads and removed untriaged Request triage from a team member labels Mar 23, 2023
@nagilson nagilson requested review from dsplaisted and joeloff March 23, 2023 17:11
@nagilson nagilson enabled auto-merge March 23, 2023 17:12
Copy link
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

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

Since this is a backport, I just scanned this very briefly.

[InlineData(false)]
public void GivenWorkloadCleanAllFileBasedItCleansAllFeatureBands(bool userLocal)
{
var (testDirectory, dotnetRoot, userProfileDir, workloadResolver, nugetDownloader) = Setup(userLocal, true);
Copy link
Member

Choose a reason for hiding this comment

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

Nit for future reference (I don't suggest changing this here, especially since it's in a dead-end release branch): It can be good for readability to specify the parameter names when passing in literals to a method.

Suggested change
var (testDirectory, dotnetRoot, userProfileDir, workloadResolver, nugetDownloader) = Setup(userLocal, true);
var (testDirectory, dotnetRoot, userProfileDir, workloadResolver, nugetDownloader) = Setup(userLocal, cleanAll: true);

Copy link
Member Author

Choose a reason for hiding this comment

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

Good to know, thanks :)

@nagilson nagilson merged commit 1d2c53e into dotnet:release/8.0.1xx-preview3 Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants