Open MNesche opened 4 days ago
Looks like there's a subtle issue with indentation of YAML lists: The "-" for the item must be on the start column of the parent key. This works for me:
ort:
allowedProcessEnvironmentVariableNames:
- PASSPORT
- USER_HOME
deniedProcessEnvironmentVariablesSubstrings:
- PASS
- SECRET
- TOKEN
- USER
enableRepositoryPackageConfigurations: true
enableRepositoryPackageCurations: true
# Force overwriting of any existing output files.
forceOverwrite: true
licenseFilePatterns:
licenseFilenames: ['license*']
patentFilenames: ['patents']
otherLicenseFilenames: ['readme*']
Very weird, I was able to reproduce it once, but now not anymore...
Describe the bug
Running ORT (any Version, starting from 28.0) in Jenkins on Windows, the config.yml (format previously to ORT Version 41.0.0) is physically present but will not be parsed further to be used for the execution. The default configuration settings are used instead. When implementing a false intendation in the config.yml, the ORT commands fail, due to the wrong intendation. This shows that the config.yml can be accessed and is also read by ORT.
Since ORT Version 41.0.0, the key "rootLicenseFilenames" in "licenseFilePatterns" of the config.yml got renamed. That should throw an error, cause the key is not valid anymore, if the same config is used with ORT 41.0.0. However, there is no error according the invalid key when running any ORT command, the fallback standard configuration settings are used instead.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Settings in the config.yml will be applied successfully.
Console / log output
Add console and / or log output that shows the error and additional context. No screenshots of plain text please, to keep text searchable.
Output after using command "ort config --show-active":
Environment
Output of the
ort requirements -l commands
command:Or manually specify:
And specify (relevant parts of) your ORT configuration (
config.yml
):Additional context
Further investigation assumes a problem in the hoplite library. The corresponding line of the issue happening in the source code of ORT seems to be at: https://github.com/oss-review-toolkit/ort/blob/1d5676fb98b833b0382c4be57d66d41355ad65e0/model/src/main/kotlin/config/OrtConfiguration.kt#L173