-
-
Notifications
You must be signed in to change notification settings - Fork 166
feat: srpm #935
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
feat: srpm #935
Conversation
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Deploying nfpm with
|
Latest commit: |
ce22b32
|
Status: | ✅ Deploy successful! |
Preview URL: | https://66bdcb58.nfpm.pages.dev |
Branch Preview URL: | https://srpm.nfpm.pages.dev |
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.
Pull Request Overview
Adds support for building source RPMs (.src.rpm
) alongside regular RPMs by introducing a new SRPM packager variant.
- Introduce
DefaultSRPM
and extendRPM
with aformat
field to switch between binary and source RPM formats - Register both
"rpm"
and"src.rpm"
packagers and wire through.ConventionalExtension()
and.Package()
- Update all existing tests to target
DefaultRPM
, and add a placeholderTestSRPM
for source RPM validation
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
rpm/rpm.go | Add format enum, DefaultSRPM , tagSourcePackage , and switchable extension/packaging logic |
rpm/rpm_test.go | Replace Default with DefaultRPM , inject TestSRPM , and adjust calls for the new packager |
Comments suppressed due to low confidence (2)
rpm/rpm.go:55
- [nitpick] Comment above
DefaultSRPM
incorrectly referencesDefaultRPM
. Update to// DefaultSRPM SRPM packager.
for clarity.
// DefaultRPM RPM packager.
rpm/rpm_test.go:156
- The new
TestSRPM
function is missing assertions for source‐RPM metadata and does not close its function body with a}
before the next test. Add equivalent validation steps (e.g., checking for the source package tag) and a closing brace.
func TestSRPM(t *testing.T) {
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #935 +/- ##
==========================================
- Coverage 69.29% 69.28% -0.01%
==========================================
Files 22 22
Lines 3120 3129 +9
==========================================
+ Hits 2162 2168 +6
- Misses 745 747 +2
- Partials 213 214 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
LGTM |
this adds a
src.rpm
packager.refs goreleaser/goreleaser#3412