-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
rpm, deb (maybe tar and zip) rules should be a new rule repo, not part of Bazel #8489
Comments
I'm more than happy to see these rules added in https://github.com/bazelbuild/rules_pkg (and I don't think a different repo should be created), if anyone is interested I can explain why that repo exists and what was the initial goal there. |
rules_pkg is currently about fetching rpms rather than building them. So the concerns are actually different. That said, I am also not against having one repo provide both rules for using and building. That would allow a small set of people to understand both sides of the process to own the work. |
I strongly agree that the rules for building packages should be moved out of the core repo. Making improvements to these rules has been challenging, since they're linked to bazel releases; breaking changes are especially problematic. I also agree that rules_pkg seems like the right place. I was surprised when I discovered rules_pkg had nothing to do with building packages. |
I'll leave this to age for a week so the rest of the community can chime in.
FYI: @apt-itude @vmax @tmc @beasleyr-vmw @EdSchouten @ltekieli @gertvdijk @ash2k @roblg @XindaH @c4urself @mmikitka @pawelz @philsc |
+1 to have them in a separate repo. For remote execution, the pkg_rpm rule is currently problematic as it expects rpmbuild to be installed in the exec environment. These rules should ideally use toolchain rules to define their tool dependencies and to ideally be made compatible with remot exec. Doing this would be much easier if they are in their own repo. |
I welcome your expertise from rules_docker with this new repo.
If it is not incredibly easy to build a docker image from the targets
generated by pkg_deb and pkg_rpm we are doing something truly wrong.
…On Wed, May 29, 2019 at 4:43 PM Nicolas Lopez ***@***.***> wrote:
+1 to have them in a separate repo. For remote execution, the pkg_rpm rule
is currently problematic as it expects rpmbuild to be installed in the exec
environment. These rules should ideally use toolchain rules to define their
tool dependencies and to ideally be made compatible with remot exec. Doing
this would be much easier if they are in their own repo.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#8489?email_source=notifications&email_token=AAXHHHAD3NVDFDOSKAX6C2LPX3TGDA5CNFSM4HQIWEM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWQSVSI#issuecomment-497101513>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAXHHHDFQDN7RROVVCAHYXLPX3TGDANCNFSM4HQIWEMQ>
.
|
I know, I wrote them. ;-) My hopes were from the beginning that the existing ones get ported from bazel/bazel to bazel/pkg_rules eventually, but that requires some coordination effort, as you can see - so I only put in the fetching instead of copying over also the building rules initially. It might be worth looking over the package building rules by the way to see if they could be improved ( |
Agree, a recent break in make_deb.py has me wishing for a |
@aiuto as for rules_docker, iirc, we do support pkg_deb in rules_docker, pkg_rpm, I think, is not currently supported for rules_docker (but should not be hard to add, we just haven't had the request from users to do this yet). |
I am pleased to announce an initial release of the decoupled pkg_{deb, rpm, tar} rules. With that, I am closing this issue. Future issues and PRs should be against that repository. Go forth and innovate. |
The rules for building distribution packages have no need to be part of Bazel. They should be owned by the people who most need them.
Proposal: https://docs.google.com/document/d/1GAbAiW0nVbxGlwsdXhFIcn3owlZJkMJiXBt-ttA9z_k/edit#
TL;DR:
The text was updated successfully, but these errors were encountered: