Git Product home page Git Product logo

Comments (7)

sschuberth avatar sschuberth commented on July 30, 2024

Hi @wujunhuge, thanks for the report. Unfortunately, most of the fields in the report were not fill out by you, making it hard for us to reproduce what the root cause of you problem is.

Apparently, the, repository field is missing the ORT result JSON file that you are trying to load. As the ORT analyzer definitely writes this mandatory field, it looks like the ORT result JSON file has been tampered with. Can you share how this is file was created exactly?

from ort.

sschuberth avatar sschuberth commented on July 30, 2024

it looks like the ORT result JSON file has been tampered with.

Or actually, judging from the file name name bom.json in your title, it looks like the input is not an ORT result file at all. Basically, the input to the ort report command is the file that gets written by the ort analyze command. Also see the tutorial.

from ort.

wujunhuge avatar wujunhuge commented on July 30, 2024

Thank you for your reply. I am trying to use tools to analyze a C++project and convert it into a CycloneDx format BOM. JSON. However, after reading the tutorial, I feel a bit confused. Do I need to add any configurations when analyzing?

from ort.

sschuberth avatar sschuberth commented on July 30, 2024

Do I need to add any configurations when analyzing?

That depends a bit on which, if any, package manager your C++ project is using. Can you share some details on that?

In any case, that does not explain why the repository field seems to be missing in the ORT result file. Can you please also share the exact command line you're using to run ort analyze?

from ort.

wujunhuge avatar wujunhuge commented on July 30, 2024

Can my C++project be scanned without a package manager like Conan?
The command I am using now is: ort -- info analyze - i- o . -f JSON

from ort.

sschuberth avatar sschuberth commented on July 30, 2024

Can my C++project be scanned without a package manager like Conan?

It can be scanned in the meaning of running ort scan with the analyzer input, but none of its dependencies will be recognized or scanned. Only what's contained in the directory / repository ort analyze was given as the input will be scanned.

from ort.

sschuberth avatar sschuberth commented on July 30, 2024

And please note that ort analyze currently expects the input directory to be under version control. If that's not the case for you, you can trick ORT by creating a temporary Git working tree directory in your input directory by running git init, git add ., git commit -m "Dummy commit for ORT" first.

from ort.

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.