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

NU5037-errors during dotnet restore with JFrog CLI >=2.25.5 #1880

Open
Tobias-08 opened this issue Mar 29, 2023 · 1 comment
Open

NU5037-errors during dotnet restore with JFrog CLI >=2.25.5 #1880

Tobias-08 opened this issue Mar 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Tobias-08
Copy link

Describe the bug

When running jf dotnet restore we are getting NU5037-errors ("The package is missing the required nuspec file. Path: C:\Users<user>.nuget\packages<package>"). The problem occurs only with CLI version >=2.25.5. Version 2.25.4 does not produce this error.

Current behavior

10:47:43 [Debug] JFrog CLI version: 2.25.5
10:47:43 [Debug] OS/Arch: windows/amd64
10:47:43 [Debug] Locking config file to run config AddOrEdit command.
10:47:43 [Debug] Creating lock in:  C:\Users\...\.jfrog\locks\config
10:47:43 [Debug] Sending HTTP GET request to: https://.../artifactory/api/security/encryptedPassword
10:47:43 [Debug] Releasing lock:  C:\Users\...\.jfrog\locks\config\jfrog-cli.conf.lck.10720.1680079663728075500
10:47:43 [Debug] Config AddOrEdit command completed successfully. config file is released.
Executing JFrog CLI Command: E:\BA\A1\_work\_tool\jf\2.25.5\x64\jf.exe c use "..._1.11.9-beta+318da350cc_dotnet_resolver_1680079663616"
10:47:44 [Debug] JFrog CLI version: 2.25.5
10:47:44 [Debug] OS/Arch: windows/amd64
10:47:44 [Debug] Locking config file to run config Use command.
10:47:44 [Debug] Creating lock in:  C:\Users\...\.jfrog\locks\config
10:47:44 [Info] Using server ID '..._1.11.9-beta+318da350cc_dotnet_resolver_1680079663616' ().
10:47:44 [Debug] Releasing lock:  C:\Users\...\.jfrog\locks\config\jfrog-cli.conf.lck.12988.1680079664102366000
10:47:44 [Debug] Config Use command completed successfully. config file is released.
Executing JFrog CLI Command: E:\BA\A1\_work\_tool\jf\2.25.5\x64\jf.exe dotnetc --server-id-resolve="..._1.11.9-beta+318da350cc_dotnet_resolver_1680079663616" --repo-resolve="...-virtual"
10:47:44 [Debug] JFrog CLI version: 2.25.5
10:47:44 [Debug] OS/Arch: windows/amd64
10:47:44 [Info] dotnet build config successfully created.
Executing JFrog CLI Command: E:\BA\A1\_work\_tool\jf\2.25.5\x64\jf.exe dotnet restore --build-name="..." --build-number="1.11.9-beta+318da350cc" --project="..."
10:47:44 [Debug] JFrog CLI version: 2.25.5
10:47:44 [Debug] OS/Arch: windows/amd64
10:47:44 [Debug] Found resolver in the config file E:\BA\A1\_work\1764\s\...\.jfrog\projects\dotnet.yaml
10:47:44 [Info] Running dotnet...
10:47:44 [Debug] Usage Report: Sending info...
10:47:44 [Debug] Saving build general details at: C:\Users\...\AppData\Local\Temp\jfrog\builds\4acdb31359592d9132f80e5017f39ba17d56c053386f5d46ea566824e6b07406\partials
10:47:44 [Debug] Nuget config file created at: C:\Users\...\AppData\Local\Temp\jfrog.cli.temp.-1680079664-3680322348\jfrog.cli.nuget.3947047009
10:47:44 [Debug] Sending HTTP GET request to: https://.../artifactory/api/system/version
10:47:45 [Debug] Artifactory response: 200 
10:47:45 [Debug] JFrog Artifactory version is: 7.46.11
10:47:45 [Debug] Sending HTTP POST request to: https://.../artifactory/api/system/usage
10:47:45 [Debug] Usage Report: Artifactory response: 200 
10:47:45 [Debug] Usage Report: Usage info sent successfully.
  Determining projects to restore...
C:\Program Files\dotnet\sdk\7.0.201\NuGet.targets(132,5): error NU5037: The package is missing the required nuspec file. Path: C:\Users\...\.nuget\packages\microsoft.data.sqlclient\2.1.4 [E:\BA\A1\_work\1764\s\...\....sln]
10:47:47 [Error] exit status 1

Reproduction steps

No response

Expected behavior

jf dotnet restore works without NU5037 (for versions >=2.25.5)

JFrog CLI version

=2.25.5

Operating system type and version

Windows Server 2016

JFrog Artifactory version

No response

JFrog Xray version

No response

@Tobias-08 Tobias-08 added the bug Something isn't working label Mar 29, 2023
@stedel
Copy link

stedel commented Oct 27, 2023

This is still happening on jf v2.50.2

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
Development

No branches or pull requests

2 participants