Skip to content

Commit 2471efa

Browse files
committed
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]: oss-review-toolkit#8803 (comment) Signed-off-by: Jens Keim <[email protected]>
1 parent fd8adfb commit 2471efa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

model/src/main/kotlin/Provenance.kt

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
package org.ossreviewtoolkit.model
2121

22+
import java.nio.file.Files
23+
import java.nio.file.Path
2224
import com.fasterxml.jackson.core.JsonParser
2325
import com.fasterxml.jackson.databind.DeserializationContext
2426
import com.fasterxml.jackson.databind.JsonNode
@@ -45,6 +47,8 @@ sealed interface KnownProvenance : Provenance
4547

4648
sealed interface RemoteProvenance : KnownProvenance
4749

50+
sealed interface LocalProvenance : KnownProvenance
51+
4852
/**
4953
* Provenance information for a source artifact.
5054
*/

0 commit comments

Comments
 (0)