Skip to content

Commit

Permalink
feat(Provenance): Add a LocalProvenance sub interface
Browse files Browse the repository at this point in the history
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 <jens.keim@forvia.com>
  • Loading branch information
pepper-jk committed Feb 3, 2025
1 parent fd8adfb commit 2471efa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/src/main/kotlin/Provenance.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,6 +47,8 @@ sealed interface KnownProvenance : Provenance

sealed interface RemoteProvenance : KnownProvenance

sealed interface LocalProvenance : KnownProvenance

/**
* Provenance information for a source artifact.
*/
Expand Down

0 comments on commit 2471efa

Please sign in to comment.