Git Product home page Git Product logo

Comments (12)

sfoslund avatar sfoslund commented on June 2, 2024 1

Yes, I would recommend uninstalling the old version.

from sbom-tool.

sfoslund avatar sfoslund commented on June 2, 2024 1

Nope, this issue was just triaged by the SBOM team and we made that note for when we get to fixing this in the future. If you want to help out and contribute that change feel free, otherwise we have this in our backlog to fix.

from sbom-tool.

sfoslund avatar sfoslund commented on June 2, 2024

Hi @rfalanga, it appears that the version of the tool that is installed by default by winget and our docs are out of sync. When I tried to repro, winget installed version 1.5.2, but our docs in this repo are reflective of the current version, version 2.2.4. I have renamed this issue to track updating the version of the tool that winget points to.

In the meantime, you can either run sbom -h to see the command line arguments supported by the version of the tool that is installed by winget, or you can directly install a newer version of the tool from the releases page

from sbom-tool.

rfalanga avatar rfalanga commented on June 2, 2024

Hi @sfoslund, I've got to admit I hadn't thought of that possibility.

So, should I uninstall the version that WinGet installs, before getting it from the releases page?

from sbom-tool.

rfalanga avatar rfalanga commented on June 2, 2024

@sfoslund I've uninstalled the WinGet version. Then downloaded the Win64 version from the release page. I ran it, twice. It just flashes up briefly, then closes immediately. After that I brought up a new instance of PowerShell, but neither the sbom not the sbom-tool commands were recognized.

Am I doing something wrong?

from sbom-tool.

sfoslund avatar sfoslund commented on June 2, 2024

When you download the exe directly it is not added to your PATH automatically, so you'll need to either run the .exe file directly by navigating to the dir where you downloaded it to and running .\sbom-tool-win-x64.exe or adding the tool to your PATH manually. There's lots of direction online about how to add a exe to your PATH, including this stackoverflow post.

from sbom-tool.

riteshnoronha avatar riteshnoronha commented on June 2, 2024

i believe "-o" is a command for the validate command, not generate. "-b" is a directory where you can have the sbom written to.

This is the command i use to generate sboms.

 sbom-tool generate  -b ./ -bc ../sbomqs -nsb https://interlynk.io -pn lynk-api -pv v1.0.0 -ps interlynk.io -D true -pm true -cd "--DirectoryExclusionList **/scripts/** **/st
orage/** **/bin/**"

from sbom-tool.

rfalanga avatar rfalanga commented on June 2, 2024

Perhaps you're right, @riteshnoronha. The documentation I was looking at clearly said that -o was for output path. But according to @sfoslund, the version of sbom-tool I was trying to use, doesn't use that syntax.

BTW, I tried to find the sbom-tool where it was installed but haven't been able to find it. I think it is buried deep within the LocalData area on my Windows 11 machine.

from sbom-tool.

rfalanga avatar rfalanga commented on June 2, 2024

Perhaps you're right, @riteshnoronha. The documentation I was looking at clearly said that -o was for output path. But according to @sfoslund, the version of sbom-tool I was trying to use, doesn't use that syntax.

BTW, I tried to find the sbom-tool where it was installed, but haven't been able to find it. I think it is buried deep within the LocalData area on my Windows 11 machine.

from sbom-tool.

sfoslund avatar sfoslund commented on June 2, 2024

But according to @sfoslund, the version of sbom-tool I was trying to use, doesn't use that syntax.

I didn't look closely at the version of the tool that winget installed, so it's possible that it does use the -o syntax, I'm not sure, you would have to check the --help output.

But for the more recent versions, it does look like @riteshnoronha is correct and the -o syntax corresponds to the validate command, please check the arguments doc here and let me know if there's somewhere else you were looking that needs to be updated.

from sbom-tool.

sfoslund avatar sfoslund commented on June 2, 2024

It appears that this PR added the sbom-tool to winget, so to fix this item we would need to submit another PR: microsoft/winget-pkgs#118723

from sbom-tool.

rfalanga avatar rfalanga commented on June 2, 2024

Sarah, are you asking me to create a PC to fix this item that involves WinGet?

from sbom-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.