Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/sdkPublic

Add SetAction to dotnet nuget trust subcommands#52224

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
martinrrm wants to merge2 commits intomain
base:main
Choose a base branch
Loading
frommartinrrm-fix-dotnet-trust-command

Conversation

@martinrrm
Copy link
Contributor

Fixes:#52220

In a previous refactoring PR#51624, there was a missing SetAction to dotnet nuget trust subcommands that broke them.

CopilotAI review requested due to automatic review settingsDecember 16, 2025 22:34
@martinrrmmartinrrm requested a review froma team as acode ownerDecember 16, 2025 22:34
Copy link
Contributor

CopilotAI left a 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 fixes a critical bug introduced in a previous refactoring (#51624) where theSetAction call was missing for alldotnet nuget trust subcommands (author, repository, source, certificate, remove, sync, and list). Without this action registration, the trust subcommands would fail to execute properly at runtime.

Key Changes:

  • Restores theSetAction(NuGetCommand.Run) call within the foreach loop that iterates over trust subcommands

Copy link
Member

@tmattmat left a comment

Choose a reason for hiding this comment

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

This is not a correct fix. The command definition shouldn't set actions. That should be done inNuGetCommandParser.SetAction. The bug is that it doesn't do it recursively.

BTW, are there no tests covering this command?

@martinrrm
Copy link
ContributorAuthor

@tmat Pushed a change to do it recursively, and at the moment we don't have tests for this and other commands in this repo. We found this bug when our CI tests started failing.

@martinrrmmartinrrm requested a review fromtmatDecember 16, 2025 23:48
@martinrrm
Copy link
ContributorAuthor

@tmat Tests passed, can we merge this? I just realized the PR is pointing main, is that the correct branch?

@tmat
Copy link
Member

I just realized the PR is pointing main, is that the correct branch?

Good catch - it should go to release/10.0.2xx. Please rebase.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@tmattmattmat approved these changes

@zivkanzivkanzivkan approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

dotnet nuget trust command not working

4 participants

@martinrrm@tmat@zivkan

[8]ページ先頭

©2009-2025 Movatter.jp