For us, when this package gets uploaded to packagecloud repository, the package gets named based on the rpm file naming convention according to the rpm metadata, and the package gets named with the release value appended to the version(name-version-1.architecture.rpm)
So for any re-run of the same gorelaser run, if we have to remove an already uploaded package based on the ConventionalFileName, it's not possible as the package name based on the package metadata and the actual ConventionalFileName given by nFPM are different.
How can we reproduce this?
Create any rpm package without providing an explicit Release value, and look at the produced ConventionalFileName and the produced rpm file metadata. The ConventionalFileName wouldn't have the default release value(`1')
What happened?
Not sure if this should filed in nFPM instead of here, please let me know if it should be filed in nFPM issue tracker.
We use goreleaser to package our binary to deb and rpm packages, and finally these gets pushed to a packagecloud repository.
We don't have an explicit release value specified in the goreleaser config. So the produced rpm package has the default release value set(
1
)But the ConventionalFileName doesn't have this default release value included( gets named as
name-version.architecture.rpm
) instead of name-version-release.architecture.rpm )For us, when this package gets uploaded to packagecloud repository, the package gets named based on the rpm file naming convention according to the rpm metadata, and the package gets named with the release value appended to the version(
name-version-1.architecture.rpm
)So for any re-run of the same gorelaser run, if we have to remove an already uploaded package based on the ConventionalFileName, it's not possible as the package name based on the package metadata and the actual ConventionalFileName given by nFPM are different.
How can we reproduce this?
Create any rpm package without providing an explicit Release value, and look at the produced ConventionalFileName and the produced rpm file metadata. The ConventionalFileName wouldn't have the default release value(`1')
goreleaser version
GoReleaser Check
Search
Supporter
Code of Conduct
Additional context
No response