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

Cartservice package restore errors #1262

Closed
matt-hensley opened this issue Nov 13, 2023 · 0 comments · Fixed by #1272
Closed

Cartservice package restore errors #1262

matt-hensley opened this issue Nov 13, 2023 · 0 comments · Fixed by #1272
Labels
bug Something isn't working

Comments

@matt-hensley
Copy link
Contributor

Bug Report

Packages do not successfully restore beginning with commit 74b5a69

Symptom

Packages Grpc.Net.Client and Microsoft.AspNetCore.TestHost are not restored due to dependency issues.

What is the expected behavior?

Packages should be restored without error. Checking out to the previous commit and restoring works as expected.

What is the actual behavior?

Running dotnet restore returns the following errors:

opentelemetry-demo\src\cartservice\tests\cartservice.tests.csproj :
error NU1605: Warning As Error: Detected package downgrade: Grpc.Net.Client from 2.58.0 to 2.57.0. Reference the package directly from the project to select a different version.  [opentelemetry-demo\src\cartservice\cartservice.sln]
opentelemetry-demo\src\cartservice\tests\cartservice.tests.csproj :
error NU1605:  cartservice.tests -> cartservice -> Grpc.AspNetCore 2.58.0 -> Grpc.AspNetCore.Server.ClientFactory 2.58.0 -> Grpc.Net.ClientFactory 2.58.0 -> Grpc.Net.Client (>= 2.58.0)  [opentelemetry-demo\src\cartservice\cartservice.sln]
opentelemetry-demo\src\cartservice\tests\cartservice.tests.csproj :
error NU1605:  cartservice.tests -> Grpc.Net.Client (>= 2.57.0) [opentelemetry-demo\src\cartservice\cartservice.sln]
opentelemetry-demo\src\cartservice\tests\cartservice.tests.csproj :
error NU1202: Package Microsoft.AspNetCore.TestHost 7.0.13 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Microsoft.AspNetCore.TestHost 7.0.13 supports: net7.0 (.NETCoreApp,Version=v7.0) [opentelemetry-demo\src\cartservice\cartservice.sln]

Reproduce

  • Checkout to commit 74b5a69 or newer on branch main
  • Change to directory src/cartservice
  • Run dotnet restore
  • Observe errors in terminal
@matt-hensley matt-hensley added the bug Something isn't working label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant