Skip to content

Analyzer issue when scanning non VCS directory #8187

@alexandruz

Description

@alexandruz

Scanning a non-VCS directory gives the following error:

Steps:

  1. Download zip from github, unzip.
  2. run - ort analyze
  3. Error.
Exception in thread "main" java.lang.IllegalArgumentException: The VcsInfo(...)
at org.ossreviewtoolkit.model.OrtResult.getFilePathRelativeToAnalyzerRoot(OrtResult.kt:233)
at org.ossreviewtoolkit.model.OrtResult.getDefinitionFilePathRelativeToAnalyzerRoot(OrtResult.kt:199)
...

Based on the https://github.com/oss-review-toolkit/ort/blob/main/model/src/main/kotlin/OrtResult.kt#L230 it shouldn't terminate in Exception in thread main, right?

Is there a workaround or ORT can only scan VCS repositories?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerAbout the analyzer tool

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions