oss-review-toolkit / ort

A suite of tools to automate software compliance checks.
https://oss-review-toolkit.org
Apache License 2.0
1.59k stars 309 forks source link

Analyzer fails with: Option path is required but not set. #9342

Open dimitris-iliou opened 1 day ago

dimitris-iliou commented 1 day ago

Describe the bug

Looking for ORT configuration in the following file:
        /builds/oss/oss-review-toolkit/ort-gitlab-ci/config.yml
Looking for analyzer-specific configuration in the following files and directories:
        /builds/oss/oss-review-toolkit/ort-gitlab-ci/project/.ort.yml (does not exist)
        /builds/oss/oss-review-toolkit/ort-gitlab-ci/ort-configuration/resolutions.yml
The following 25 package manager(s) are enabled:
        Bazel, Bower, Bundler, Cargo, Carthage, CocoaPods, Composer, Conan, GoMod, Gradle, Maven, NPM, NuGet, PIP, Pipenv, PNPM, Poetry, Pub, SBT, SpdxDocumentFile, Stack, SwiftPM, Unmanaged, Yarn, Yarn2
Exception in thread "main" java.lang.IllegalStateException: Option path is required but not set.
    at org.ossreviewtoolkit.plugins.packagecurationproviders.file.FilePackageCurationProviderFactory.create(FilePackageCurationProviderFactory.kt:14)
    at org.ossreviewtoolkit.plugins.packagecurationproviders.file.FilePackageCurationProviderFactory.create(FilePackageCurationProviderFactory.kt:9)
    at org.ossreviewtoolkit.plugins.packagecurationproviders.api.PackageCurationProviderFactory$Companion.create(PackageCurationProviderFactory.kt:51)
    at org.ossreviewtoolkit.plugins.commands.analyzer.AnalyzerCommand.run(AnalyzerCommand.kt:167)
    at com.github.ajalt.clikt.core.CoreCliktCommandKt.parse(CoreCliktCommand.kt:107)
    at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:78)
    at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:90)
    at org.ossreviewtoolkit.cli.OrtMainKt.main(OrtMain.kt:87)

The error appeared after building latest ORT version, I am not sure how to proceed with this

sschuberth commented 1 day ago

Does this occur when using https://github.com/oss-review-toolkit/ort-ci-gitlab? If so, please file the issue over there.

sschuberth commented 1 day ago

The error appeared after building latest ORT version, I am not sure how to proceed with this

Anyway, as the error message says, "Option path is required but not set". So no path is set for your FilePackageCurationProvider. Which probably is because you're using an outdated key name for the parent node: Use "options" instead of "config".