Produced binary is an ar archive

2021-09-05 Thread Mikel Olasagasti
Hi all, I'm new to Go SIG. There are some Go apps that I'm interested in packaging and I'm learning about it. One of these packages is `doctl`, the official cli for DigitalOcean, but I'm having problems with the result. I'm able to build it using mock or copr, but the generated binary is detecte

Re: Produced binary is an ar archive

2021-09-05 Thread Link Dupont
I think you need to append "/cmd/doctl" to your %{goipath} line on line 72: %build %gobuild -o %{gobuilddir}/cmd/doctl %{goipath}/cmd/doctl The way your %gobuild line reads to me today is that it's building the Go *package* github.com/digitalocean/doctl. You want to build the executable githu

Re: Produced binary is an ar archive

2021-09-05 Thread Mikel Olasagasti
Hau idatzi du Link Dupont (l...@sub-pop.net) erabiltzaileak (2021 ira. 5, ig. (15:09)): > > I think you need to append "/cmd/doctl" to your %{goipath} line on line > 72: > > %build > %gobuild -o %{gobuilddir}/cmd/doctl %{goipath}/cmd/doctl Thanks link++, that's it!