You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(Repository): Use KnownProvenance instead of VcsInfo
In order to allow source artifacts as well as local source code to
be scanned, we require a more generallized Repository, which allows
any type of `KnownProvenance`. While we still set the signature of
`Repository` to allow `KnownProvenance`s, this commit focuses on
accomidateing `RepositoryProvenance` as then main input for now.
Therefore we wrap `VcsInfo` with `RepositoryProvenance`, whenever
it is used as input, and unwrap it, when it is produced as output.
This gives us a quick update of the now depreacted code, without
the necessity to support all `KnownProvenance` types from the get
go.
We also update any realted tests, mostly the expected `OrtResults`,
but also some `Repository` definitions and calls.
To avoid having `vcs` and `vcsProcessed` appear in the `OrtResult`
output, we change them to be a method (fun) instead of a variable (val).
This is still a soft refactor, to keep the widely used `vcsProcessed`
available for now. We might still remove it later.
Signed-off-by: Jens Keim <[email protected]>
0 commit comments