On Tue, Sep 1, 2026 at 5:05 AM Orion Poplawski <[email protected]> wrote: > > Apparently this is not possible: > > %goprep -p1 -n cli-1.0.0-rc1 >
No, -n is a `%setup` thing, but `%goprep` doesn't support it. You can see the supported arguments here: https://gitlab.com/fedora/sigs/go/go-rpm-macros/-/blob/main/rpm/macros.d/macros.go-rpm?ref_type=heads#L119-176 > What is the recommended way to handle pre-release versions with golang > packaging? > Using `Version` should be enough. Now if they package uses `~` instead of `-`, you might want to do a little bit of substitution like they did here: https://src.fedoraproject.org/rpms/docker-compose/blob/7d39c75168a7b4731c25636ee3e6d3eb050fdcbb/f/docker-compose.spec As a side note, you might want to use go2rpm to generate the specfile for you, it should handle all these things in many scenarios. https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/#_go2rpm -- _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
