-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow empty revisions in VCS matchers of package configurations #4196
Comments
@fviernau, we realized this issue seems to confuse two things:
What we'd like to implement is not to support version ranges as part of the Instead, the idea is to allow to leave the So, would you still be fine with optionally omitting the revision to match any revision? Would you require this possibility to be hidden behind a feature toggle? |
Alternatively, we could require to explicitly write the name of the symbolic revision (like "master" / "main"), which would probably get us around implementing a feature toggle: The toggle then is to write out the symbolic revision explicitly. |
Defining edit: I recall parts of a discussion quite a while ago in ORT developer meeting: it included the proposal of mine to implement treating a subtree of the source tree as corresponding to a (SPDX) package, including treating the respective |
The package configurations I'm referring to do come from |
I didn't mean package configurations in |
@fviernau, I guess we should have a meeting about this. |
As just discussed with @mnonnenmacher matching symbolic revisions is not possible as ORT does not store them in the scan results currently. |
Allow to omit a `VcsMatcher`'s `revision` to match any `resolvedRevision` from a `RepositoryProvenance`. This is especially useful when working with `SpdxDocumentFile`s that define packages in subdirectories of the project's repository, as it avoids the `revision` to be updated whenever commits to the project (not the package) are being made. Resolves #4196. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Allow to omit a `VcsMatcher`'s `revision` to match any `resolvedRevision` from a `RepositoryProvenance`. This is especially useful when working with `SpdxDocumentFile`s that define packages in subdirectories of the project's repository, as it avoids the `revision` to be updated whenever commits to the project (not the package) are being made. Resolves #4196. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Can it be documented in [1], that empty revisions are allowed and what the implications are? |
It is already briefly documented there by saying "[...] with an optional revision". |
In curations we already support (Ivy-style) ranges for versions as part of IDs. On the other hand, package configurations do currently not support version ranges.
While in a recent developer meeting HERE expressed concerns about that feature due to potential misuse, the same risk of misuse already stems from curations, and Bosch definitely needs the feature. So we should implement it IMO, and simply leave it to every party to make use of it or not. If required, there could even be simple CI checks for package configuration changes that prevent the use of version ranges.
The text was updated successfully, but these errors were encountered: