aboutcode-org / aboutcode-org/nuget-inspector

Transitive packages are not shown

Đang mở
#75 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
5
Fork
13
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi there,

I have downloaded the tool (binaries and source version 0.10.0) and found that it does not include transitive dependencies (anymore?). From what I have understood, this should work - it already worked in a previous version. However, I cannot fall back to an older version since I require the CPM support which was just introduced with 0.10.0.

I created a simple test project, with some NuGet packages:

Image

And if I run nuget-inspector against that I got:

[test.json](https://github.com/user-attachments/files/29336197/test.json)

I was running this command:
`nuget-inspector.exe --verbose --with-details --project-file="D:\source\TestNuGet\TestNuGet\TestNuGet.csproj" --json=test.json`

```
nuget-inspector options:
--project-file D:\source\TestNuGet\TestNuGet\TestNuGet.csproj
--json test.json
--verbose
--with-details
Effective project framework: net8.0

PopulateResources: Loaded 1 package sources from nuget.config
AddSourceRepo: adding new https://api.nuget.org/v3/index.json

ProjectScanner: Using filename as project name: TestNuGet
Assembly version '1.0.0.0' in 'D:\source\TestNuGet\TestNuGet\obj\Debug\net8.0\TestNuGet.AssemblyInfo.cs'.
Selected version '1.0.0.0' from 'D:\source\TestNuGet\TestNuGet\obj\Debug\net8.0\TestNuGet.AssemblyInfo.cs'.
Using AssemblyInfoParser for project version: 1.0.0.0

Running scan of: D:\source\TestNuGet\TestNuGet\TestNuGet.csproj with fallback: False
Using project-assets.json lockfile at: D:/source/TestNuGet/TestNuGet/obj/project.assets.json
LockFile: NuGet.ProjectModel.LockFile
LockFile.Path: D:/source/TestNuGet/TestNuGet/obj/project.assets.json
LockFile.PackageSpec: NuGet.ProjectModel.PackageSpec
LockFile.PackageSpec.TargetFrameworks: System.Collections.Generic.List`1[NuGet.ProjectModel.TargetFrameworkInformation]
Found #6 dependencies with data_source_id: dotnet-project.assets.json
Project resolved: TestNuGet
Fetching package metadata for: Aspire.Hosting.Yarp.13.3.1
Fetching package metadata for: Aspire.Hosting.Yarp.13.3.1
Nuspec copyright: © Microsoft Corporation. All rights reserved.
Nuspec repo.type: git
Nuspec repo.url: https://github.com/microsoft/aspire
Nuspec repo.branch:
Nuspec repo.commit: 8d772432704b861dd4cd41cf0ef3b467543ec27c
Fetching package metadata for: Azure.Identity.1.21.0
Fetching package metadata for: Azure.Identity.1.21.0
Nuspec copyright: © Microsoft Corporation. All rights reserved.
Nuspec repo.type: git
Nuspec repo.url: https://github.com/Azure/azure-sdk-for-net
Nuspec repo.branch:
Nuspec repo.commit: f7400e4471111bf7f2154834022786119acbdd77
Fetching package metadata for: HotChocolate.AspNetCore.15.1.12
Fetching package metadata for: HotChocolate.AspNetCore.15.1.12
Nuspec copyright: Copyright © 2021 ChilliCream Inc.
Nuspec repo.type: GitHub
Nuspec repo.url: https://github.com/ChilliCream/graphql-platform.git
Nuspec repo.branch:
Nuspec repo.commit: 6e6a326b053d763af46280e40eb18005ce351061
Fetching package metadata for: Aspire.Hosting.Yarp.13.3.1
Nuspec copyright: © Microsoft Corporation. All rights reserved.
Nuspec repo.type: git
Nuspec repo.url: https://github.com/microsoft/aspire
Nuspec repo.branch:
Nuspec repo.commit: 8d772432704b861dd4cd41cf0ef3b467543ec27c
Fetching package metadata for: Azure.Identity.1.21.0
Nuspec copyright: © Microsoft Corporation. All rights reserved.
Nuspec repo.type: git
Nuspec repo.url: https://github.com/Azure/azure-sdk-for-net
Nuspec repo.branch:
Nuspec repo.commit: f7400e4471111bf7f2154834022786119acbdd77
Fetching package metadata for: HotChocolate.AspNetCore.15.1.12
Nuspec copyright: Copyright © 2021 ChilliCream Inc.
Nuspec repo.type: GitHub
Nuspec repo.url: https://github.com/ChilliCream/graphql-platform.git
Nuspec repo.branch:
Nuspec repo.commit: 6e6a326b053d763af46280e40eb18005ce351061
Run summary:
Dependencies resolved in: 5004 ms.
Metadata collected in: 863 ms.
Scan completed in: 5868 ms.

Scan Result: success: JSON file created at: test.json
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.