Skip to content

Conversation

@dotnet-maestro
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Nov 5, 2022

This pull request updates the following dependencies

From https://github.com/nuget/nuget.client

  • Subscription: fcb199f6-ff33-44a0-f3ef-08d8e97c775d
  • Build: 6.5.0.69
  • Date Produced: November 8, 2022 5:03:23 AM UTC
  • Commit: 69af0e6768253362c74ef96253619a49bbd1cc8b
  • Branch: dev

…6.5.0.68

NuGet.Build.Tasks
 From Version 6.5.0-preview.2.67 -> To Version 6.5.0-preview.2.68
@ghost ghost added the Area-CodeFlow label Nov 5, 2022
…6.5.0.69

NuGet.Build.Tasks
 From Version 6.5.0-preview.2.67 -> To Version 6.5.0-preview.2.69
@erdembayar
Copy link
Contributor

@marcpopMSFT
When do we expect this one to merge? Is there anything blocking?

@dsplaisted
Copy link
Member

@erdembayar This test is failing:

public void AssetsPathExistsButNotRestored()
{
var testAsset = "NewtonSoftDependentProject";
var projectDirectory = _testAssetsManager
.CopyTestAsset(testAsset)
.WithSource()
.Path;
new ListPackageCommand(Log)
.WithWorkingDirectory(projectDirectory)
.Execute()
.Should()
.Pass()
.And.HaveStdErr();
}

It looks like previously if you tried to run dotnet list package on a project that wasn't restored, it would print an error but return success (0) as the exit code. Now it looks like it's returning a failure. Is this an expected change?

@erdembayar
Copy link
Contributor

@erdembayar This test is failing:

public void AssetsPathExistsButNotRestored()
{
var testAsset = "NewtonSoftDependentProject";
var projectDirectory = _testAssetsManager
.CopyTestAsset(testAsset)
.WithSource()
.Path;
new ListPackageCommand(Log)
.WithWorkingDirectory(projectDirectory)
.Execute()
.Should()
.Pass()
.And.HaveStdErr();
}

It looks like previously if you tried to run dotnet list package on a project that wasn't restored, it would print an error but return success (0) as the exit code. Now it looks like it's returning a failure. Is this an expected change?

Yes, it's expected change. We added non-zero exit codes indicate something wrong with the "dotnet list package" report, so customer need to take a look into it.
You can see spec here.

@dsplaisted
Copy link
Member

I've updated the test to account for the changed return code.

FYI @dotnet/dotnet-cli, we should probably document this as a breaking change for .NET 8.

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.

3 participants