-
Notifications
You must be signed in to change notification settings - Fork 61
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
cachi2: conversion function to cachi2 params #2092
cachi2: conversion function to cachi2 params #2092
Conversation
4bef433
to
25013bb
Compare
atomic_reactor/utils/cachi2.py
Outdated
|
||
Remote sources were orignally designed for cachito. Cachi2 is not a direct | ||
fork but has lot of similarities. | ||
However, some parameters must be updated to be compatible with cachi2.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include more information about the parameters? Or are we expecting that we will always remove only the "include-git-dir" and "remove-unsafe-symlinks" flags?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only these 2 flags as it's job for OSBS in future, and also that pkg manager Adam mentioned in #2092 (comment)
atomic_reactor/utils/cachi2.py
Outdated
packages = remote_source.get("packages", {}).get(pkg_manager, []) | ||
packages = packages or [{"path": "."}] | ||
for pkg in packages: | ||
cachi2_packages.append({**{"type": pkg_manager}, **pkg}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nipick: the intermediate {"type": "pkg_manager"}
dict is unnecessary
{"type": pkg_manager, **pkg}
25013bb
to
9e22006
Compare
Addressed comments, PTAL |
Conversion function that transforms remote_source into cachi2 params STONEBLD-2586 Signed-off-by: Martin Basti <[email protected]>
9e22006
to
4dfb9e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
f5b37e2
into
containerbuildsystem:feature_cachi2
Conversion function that transforms remote_source into cachi2 params
STONEBLD-2586
Maintainers will complete the following section