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

Did not generate a SPDX-file #296

Open
Padina14 opened this issue Aug 7, 2023 · 1 comment
Open

Did not generate a SPDX-file #296

Padina14 opened this issue Aug 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Padina14
Copy link

Padina14 commented Aug 7, 2023

Summary

I started spdx-sbom-generator (current version), to generate an SBOM.
I can't detext the current version with spdx-sbom-generator --version (command not defined yet).
I got the output in the console:

INFO[2023-08-07T11:25:26+02:00] Starting to generate SPDX ...                
INFO[2023-08-07T11:25:26+02:00] Running generator for Module Manager: `composer` with output `bom-composer.spdx` 
INFO[2023-08-07T11:25:26+02:00] Running generator for Module Manager: `npm` with output `bom-npm.spdx` 
INFO[2023-08-07T11:25:27+02:00] Current Language Version 9.6.4               
INFO[2023-08-07T11:25:27+02:00] Global Setting File                          
panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
github.com/spdx/spdx-sbom-generator/pkg/modules/npm.getPackageDependencies(0x17d443f?, {0x17dcc4a, 0xc})
	/private/tmp/spdx-sbom-generator-20221123-4665-z9g2li/spdx-sbom-generator-0.0.15/pkg/modules/npm/handler.go:317 +0x4d8
github.com/spdx/spdx-sbom-generator/pkg/modules/npm.(*npm).buildDependencies(0xc00008a1e0, {0x17d43ec, 0x1}, 0x8?)
	/private/tmp/spdx-sbom-generator-20221123-4665-z9g2li/spdx-sbom-generator-0.0.15/pkg/modules/npm/handler.go:203 +0x2b0
github.com/spdx/spdx-sbom-generator/pkg/modules/npm.(*npm).ListModulesWithDeps(0xc00008a1e0?, {0x17d43ec, 0x1}, {0x16?, 0xc0032df9b0?})
	/private/tmp/spdx-sbom-generator-20221123-4665-z9g2li/spdx-sbom-generator-0.0.15/pkg/modules/npm/handler.go:185 +0x1ae
github.com/spdx/spdx-sbom-generator/pkg/modules.(*Manager).Run(0xc00008a320)
	/private/tmp/spdx-sbom-generator-20221123-4665-z9g2li/spdx-sbom-generator-0.0.15/pkg/modules/modules.go:102 +0x15a
github.com/spdx/spdx-sbom-generator/pkg/handler.(*spdxHandler).Run(0xc0000d41c0)
	/private/tmp/spdx-sbom-generator-20221123-4665-z9g2li/spdx-sbom-generator-0.0.15/pkg/handler/spdx.go:88 +0x309
main.generate(0x1fc1540, {0x17d5311?, 0x1?, 0x1?})
	/private/tmp/spdx-sbom-generator-20221123-4665-z9g2li/spdx-sbom-generator-0.0.15/cmd/generator/generator.go:121 +0x372
github.com/spf13/cobra.(*Command).execute(0x1fc1540, {0xc000024050, 0x1, 0x1})
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0x1fc1540)
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x39d
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/[email protected]/command.go:897
main.main()
	/private/tmp/spdx-sbom-generator-20221123-4665-z9g2li/spdx-sbom-generator-0.0.15/cmd/generator/generator.go:39 +0x65


No file was generated.

Background

Mac - Ventura 13.5(current)

Expected behavior

The programm generate one ore more text-files in SPDX-format.

@Padina14 Padina14 added the bug Something isn't working label Aug 7, 2023
@nishakm
Copy link
Collaborator

nishakm commented Aug 7, 2023

Hi @Padina14, this project is currently under reconstruction. We will address this issue once it is done.

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