Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(model)!: Stop silently ignoring invalid declared license mappings
Previously, `PackageCuration.apply()` silently ignored declared license mapping entries with invalid SPDX expressions. For example, if one accidentally omits the `LicenseRef-` prefix, the mapping is just silently ignored. Add a check that all values in the `Map` are valid SPDX expression into the constructor, to fail as early as possible. When used via a `FilePackageCurationProvider`, ORT now fails with the error message pointing to the problematic curation file path. Fixes: #7828. Signed-off-by: Frank Viernau <[email protected]>
- Loading branch information