-
Notifications
You must be signed in to change notification settings - Fork 315
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 excluding a specific dependency #3537
Comments
I think is a good idea, especially if the scanner afterwards does not scan the dependency at all if |
@nnobelis we are currently evaluating ORT, and ran into the same "issue". Would the current architecture support the extension of the excludes mechanic to also work with packages? |
@sschuberth @mnonnenmacher @fviernau Could you please answer @brueggenthies-ams ? |
I believe ORT only reflects what is supported by the respective package manager. E.g. if the package managers have scopes for "test dependencies" then these dependencies really do not go into the released artifact. So, the exclusion mechanism exists on the package manager side, not in ORT, ORT only reflects that. In my view we should stick to that approach, for clarity and simplicity and correctness of the results. For |
@brueggenthies-ams do you have another, maybe more convincing, use-case than the mentioned example of a Python |
@sschuberth we are trying to analyse an Android project, and noticed that the scanner will run over every dependency, including those by JetBrains or Google, e.g. the Kotlin standard library. We would like to exclude some dependencies as we trust them. Although the setup is a little different (Android Project uses Gradle), we also cannot exclude any files/directories, as the dependencies are all defined inside the build files (or sometimes even included implicitly). |
Then this is pretty much the use-case of #5105, and really excluding such dependencies is not the way to go. It must still be documented that they are there, but esp. scanning could be skipped. |
Enable this by default for performance reasons of showcasing ORT. For simplicity, only use a single parameter for all tools as there is barely a need to configure this flag differently per tool. However, the meaning of this parameter can slightly differ per tool, as not all tools support e.g. path excludes yet, see [1] or also [2] in that context. [1]: #5018 [2]: #3537 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Enable this by default for performance reasons of showcasing ORT. For simplicity, only use a single parameter for all tools as there is barely a need to configure this flag differently per tool. However, the meaning of this parameter can slightly differ per tool, as not all tools support e.g. path excludes yet, see [1] or also [2] in that context. [1]: #5018 [2]: #3537 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Enable this by default for performance reasons of showcasing ORT. For simplicity, only use a single parameter for all tools as there is barely a need to configure this flag differently per tool. However, the meaning of this parameter can slightly differ per tool, as not all tools support e.g. path excludes yet, see [1] or also [2] in that context. [1]: #5018 [2]: #3537 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
For example NuGet does not have scopes in the sense npm and python do. There is no such way do distinguish development and test dependencies from distributed production dependencies. |
We already name "conventional namespaces" for NuGet, so maybe we could have "conventional scopes" as well?
From our Slack conversation, I though that we could use |
Not all package managers have scopes such as Python where its
requirements.txt
is basically a flat list of dependencies. What if in https://github.com/heremaps/xyz-spaces-python/blob/master/requirements.txt the developer was to exclude geopandas as PROVIDED_BY e.g. be provided by end user or to be installed on the system.Propose we introduce way for ORT users to exclude a specific package and was thinking of below:
The text was updated successfully, but these errors were encountered: