-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg managers: add bundler to dev pkg managers
This is the first commit that starts implementation of bundler package manager introduced in: #565 By adding a package manager to dev section, we expose it from the user for a period of time until the package manager is fully supported. Signed-off-by: Michal Šoltis <[email protected]>
- Loading branch information
1 parent
20eb5f0
commit 660bb33
Showing
7 changed files
with
46 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from cachi2.core.package_managers.bundler.main import fetch_bundler_source | ||
|
||
__all__ = ["fetch_bundler_source"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from cachi2.core.models.input import Request | ||
from cachi2.core.models.output import EnvironmentVariable, ProjectFile, RequestOutput | ||
from cachi2.core.models.sbom import Component | ||
|
||
|
||
def fetch_bundler_source(request: Request) -> RequestOutput: | ||
"""Resolve and process all bundler packages.""" | ||
components: list[Component] = [] | ||
environment_variables: list[EnvironmentVariable] = [] | ||
project_files: list[ProjectFile] = [] | ||
|
||
return RequestOutput.from_obj_list( | ||
components=components, | ||
environment_variables=environment_variables, | ||
project_files=project_files, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters