Skip to content
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

Provide more examples for pkg_rpm() #823

Merged
merged 7 commits into from
Feb 28, 2024

Conversation

kellyma2
Copy link
Contributor

@kellyma2 kellyma2 commented Feb 23, 2024

This PR does three things:

  • moves the existing rpm example into a subdirectory to make the examples easier to collect
  • adds examples using the system rpmbuild (bzlmod and non-bzlmod)
  • adds an example that uses pure pkg_rpm() with no specfile

This will help us be a bit more organized as we add a few more
RPM-based examples for rules_pkg.
One we moved this into a subdirectory it was broke because of how it
uses rules_pkg as a local repository.
The latter seems to be more the norm, so renaming for consistency and
visibility.
This adds a bit more detail the description of the `prebuilt_rpmbuild`
example so that someone can understand it a bit more.
This example is essentially the same as the prebuilt_rpmbuild example
except that it uses find_system_rpmbuild() to register the local
version of `rpmbuild` as the toolchain to use.
This is very similar to the non-bzlmod version except we've replaced
the WORKSPACE file with a MODULE.bazel file.
This example uses pkg_rpm() to generate the full rpm in lieu of using
a standalone specfile.
Copy link
Collaborator

@cgrindel cgrindel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I noticed that CI is failing on Windows. @aiuto is that a flaky test?

@tonyaiuto
Copy link
Collaborator

tonyaiuto commented Feb 24, 2024 via email

@kellyma2
Copy link
Contributor Author

This looks good to me. I noticed that CI is failing on Windows. @aiuto is that a flaky test?

Looks like the failure was in pulling the repo, which I assume to be unrelated to my changes.

@aiuto
Copy link
Collaborator

aiuto commented Feb 28, 2024

Thanks.

@aiuto aiuto merged commit 5607259 into bazelbuild:main Feb 28, 2024
2 checks passed
@kellyma2 kellyma2 deleted the rpm-bzlmod-example branch February 28, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants