led0nk reported a new issue against the project: `go-rpm-macros` that you are 
following:
``
Hey guys,
I'm new to rpm-package-building and especially with golang, so i'm sorry if i'm 
asking dumb questions..

At first a achieved to create a rpm-package of my GitHub-Repository providing 
Packit (used service) with a pre-made archive, which includes vendor-files.
Now I'd like to achieve a solution without providing vendor-files, which was 
just an idea since i read about the go-rpm-macros.
I'm not quite sure if I correctly understood it, but for me it seems reasonable 
to use `%generate_buildrequires` followed by `%go_generate_buildrequires` to 
list my dependencies for building the binary.

But whenever I'm running packit with my .spec-file I keep getting this error:
```
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.kZ8p2R
+ umask 022
+ cd /builddir/build/BUILD
+ cd ark-clusterinfo-0.1.0
+ GOPATH=/builddir/build/BUILD/ark-clusterinfo-0.1.0/_build:/usr/share/gocode
+ GO111MODULE=off
+ golist --imported --package-path github.com/led0nk/ark-clusterinfo --template 
'golang({{.}})\n' --with-tests --skip-self
cannot find package "github.com/led0nk/ark-clusterinfo" in any of:
        /usr/lib/golang/src/github.com/led0nk/ark-clusterinfo (from $GOROOT)
        
/builddir/build/BUILD/ark-clusterinfo-0.1.0/_build/src/github.com/led0nk/ark-clusterinfo
 (from $GOPATH)
        /usr/share/gocode/src/github.com/led0nk/ark-clusterinfo
```



Does someone have any clue on what's going wrong here?

Here is my .spec-file:

https://github.com/led0nk/ark-clusterinfo/blob/1db8c54b5e7dee1029ba1b65a4f93174c55c65a0/ark-clusterinfo.spec




``

To reply, visit the link below or just reply to this email
https://pagure.io/go-rpm-macros/issue/69
--
_______________________________________________
golang mailing list -- golang@lists.fedoraproject.org
To unsubscribe send an email to golang-le...@lists.fedoraproject.org
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/golang@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to