aboutcode-org / aboutcode-org/nuget-inspector

Transitive packages are not shown

Ouverte
#75 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C#
Étoiles
5
Forks
13
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.