On Tue, Jan 15, 2019, 03:37 Neal Gompa <ngompa13@gmail.com wrote:
On Mon, Jan 14, 2019 at 7:22 PM Ken Dreyer <kdreyer@redhat.com> wrote:
>
> Hi folks,
>
> I'm attempting to package up a Go-based application and I'm lost :)
>
> I've run "yum install gofed" so I've got gofed-1.0.0-0.21.rc1.fc29
> installed. Here's where I tried to use it:
>
> $ gofed repo2spec --detect https://github.com/rook/rook
> Repo URL: github.com/rook/rook
> Commit: 43a83f7d8fff8753eb6f492d729f9c6876105164
> Name: golang-github-rook-rook
>
> (1/4) Checking if the package already exists in PkgDB
> (2/4) Collecting data
> 2019-01-14 17:16:34,402 - ERROR - [Errno 13] Permission denied:
> '/var/lib/gofed/resource_provider/githubsourcecodeprovider-9ef70a1c8c7d4532abe3ea8cdd330ccbac5aa58d6fd842f0b55e078c033ca3df'
>
> I'm not sure how to get past this error. I also have some general questions:
>
> 1. Am I on the right track and I should continue with gofed?
>
> 2. How can I tell gofed that I'm packaging an application (like etcd),
> not a library?
>

I've only been able to use gofed as root, though I think there's a way
to run it not as root. As for telling it you're packaging a
application, just add --with-build.

When I had the same problem some time ago, I was told to RTFD and add my user to the gofed group (IIRC: "sudo usermod -a -G gofed USER"), and log out and back in.

Hope that helps.
Fabio




--
真実はいつも一つ!/ Always, there's only one truth!
_______________________________________________
golang mailing list -- golang@lists.fedoraproject.org
To unsubscribe send an email to golang-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org