From 2471efa74e19856d9a4ca25c930c5bff380a4207 Mon Sep 17 00:00:00 2001 From: Jens Keim Date: Thu, 30 Jan 2025 16:28:03 +0100 Subject: [PATCH] feat(Provenance): Add a `LocalProvenance` sub interface In contrast to the previously added `RemoteProvenance` stands the `LocalProvenance`, which has no remote source, but instead references a local input of some kind. See [1] for more context on the new Provenance Hierarchy. [1]: https://github.com/oss-review-toolkit/ort/issues/8803#issuecomment-2236958430 Signed-off-by: Jens Keim --- model/src/main/kotlin/Provenance.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model/src/main/kotlin/Provenance.kt b/model/src/main/kotlin/Provenance.kt index 5290e442ac5f6..29eb27441f2ba 100644 --- a/model/src/main/kotlin/Provenance.kt +++ b/model/src/main/kotlin/Provenance.kt @@ -19,6 +19,8 @@ package org.ossreviewtoolkit.model +import java.nio.file.Files +import java.nio.file.Path import com.fasterxml.jackson.core.JsonParser import com.fasterxml.jackson.databind.DeserializationContext import com.fasterxml.jackson.databind.JsonNode @@ -45,6 +47,8 @@ sealed interface KnownProvenance : Provenance sealed interface RemoteProvenance : KnownProvenance +sealed interface LocalProvenance : KnownProvenance + /** * Provenance information for a source artifact. */