On 7/4/26 10:26 AM, Emanuele Petriglia wrote:
> After some time, I tried to recreate the SRPM with the go2rpm command and the tweak you'd made due to a missing LICENSE file. I tried building the package with mock and installing it on a Fedora 44 container to test it manually, and it seems to work correctly. Following the linked guide, I opened a Bugzilla review ticket. I hope I've done this right!
>
> BZ ticket:https://bugzilla.redhat.com/show_bug.cgi?id=2497055
Hi Emanuele,
Yes, it looks like you followed the process correctly.
Is anyone available to for a package review and/or to sponsor Emanuele
into the packager group (I'm CCing the golang list here also)? I am
currently a bit swamped.
All the best,
Maxwell
Hey Go packagers,
this is my first time trying to package a Go application, namely the
docker-credential-helpers:
https://github.com/docker/docker-credential-helpers
I used go2rpm with '--profile vendor' to generate the initial SPEC file
and then augmented it.
Here is my current work-in-progress:
https://github.com/tjanez/docker-credential-helpers-package
And the Koji scratch build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=147794860
The upstream project basically consists of 4 helpers:
- pass
- secretservice
- osxkeychain
- wincred
The first 2 are applicable to Fedora and I've created 2 corresponding
subpackages for them.
The last 2 are OS X/macOS and Windows specific so they don't make sense
in a Fedora package.
The go.mod file only requires dependent modules for those 2:
```
require (
github.com/danieljoos/wincred v1.2.3
github.com/keybase/go-keychain v0.0.1
)
require golang.org/x/sys v0.20.0 // indirect
```
I think it would be better to just remove the 2 required modules and
the indirect dependency from the vendor tarball since they are not
needed on Fedora?
Is it possible to configure the go2rpm vendoring tools to exclude
certain dependencies?
Regards,
Tadej