-
Notifications
You must be signed in to change notification settings - Fork 314
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
Configurable URL replacements for the analyzer / downloader #6698
Comments
Similar feature requests occasionally came up in the past already, I remember @heliocastro having similar requirements. A configurable analyzer mechanism to do regex-based search & replace on URLs could also be used to replace hard-coded substitutions like not using ort/utils/ort/src/main/kotlin/Utils.kt Lines 180 to 183 in 2e78d0f
|
Note that this needs to work for submodules as well. (As long as we rely on recursive cloning) |
@fviernau s/not/note/ ? If so, indeed I think a substitution wouldn't work for automatic submodules cloning, where ORT does not control the URL. |
I found more configuration rules that we had to set, which I'm not sure that can be specified as regexes:
|
Thanks to #6387 this could probably quite elegantly implemented as a special curation providers that does regex search & replaces on URLs from package metadata. |
True, so any such URL replacement would also need to be applied by the downloader, not only the analyzer. A repo to test this with could be https://github.com/TritonDataCenter/node-http-signature/blob/v1.2.0/.gitmodules as it uses SSH / SCP URLs like |
We need to set some connection configuration of the vcs in general and git in particular, for example whether to use https instead of ssh.
Our current workaround is to place this in the docker entry point:
The text was updated successfully, but these errors were encountered: