--- Comment #5 from Robert-André Mauchin <zebob.m(a)gmail.com> ---
(In reply to Germano Massullo from comment #3)
https://germano.fedorapeople.org/package_reviews/bettercap/rev1/bettercap.
spec
https://germano.fedorapeople.org/package_reviews/bettercap/rev1/bettercap-2.
0.0-0.1.fc27.src.rpm
I have changed
BuildRequires:
golang(github.com/jteeuwen/go-bindata)
to
BuildRequires: go-bindata
and
%setup -q -n %{name}-%{gittag}
to
%setup -q -n bettercap-ng-%{commit}
now mock returns errors
main.go:7:2: cannot find package "github.com/evilsocket/bettercap-ng/core"
in any of:
/usr/lib/golang/src/github.com/evilsocket/bettercap-ng/core (from
$GOROOT)
/builddir/build/BUILD/bettercap-ng-eb1a53efa3171aefed0ec9766d8c5047bd0df289/
_build/src/github.com/evilsocket/bettercap-ng/core (from $GOPATH)
/usr/share/gocode/src/github.com/evilsocket/bettercap-ng/core
main.go:8:2: cannot find package "github.com/evilsocket/bettercap-ng/log" in
any of:
/usr/lib/golang/src/github.com/evilsocket/bettercap-ng/log (from
$GOROOT)
/builddir/build/BUILD/bettercap-ng-eb1a53efa3171aefed0ec9766d8c5047bd0df289/
_build/src/github.com/evilsocket/bettercap-ng/log (from $GOPATH)
/usr/share/gocode/src/github.com/evilsocket/bettercap-ng/log
main.go:9:2: cannot find package
"github.com/evilsocket/bettercap-ng/modules" in any of:
/usr/lib/golang/src/github.com/evilsocket/bettercap-ng/modules (from
$GOROOT)
/builddir/build/BUILD/bettercap-ng-eb1a53efa3171aefed0ec9766d8c5047bd0df289/
_build/src/github.com/evilsocket/bettercap-ng/modules (from $GOPATH)
/usr/share/gocode/src/github.com/evilsocket/bettercap-ng/modules
main.go:10:2: cannot find package
"github.com/evilsocket/bettercap-ng/session" in any of:
/usr/lib/golang/src/github.com/evilsocket/bettercap-ng/session (from
$GOROOT)
/builddir/build/BUILD/bettercap-ng-eb1a53efa3171aefed0ec9766d8c5047bd0df289/
_build/src/github.com/evilsocket/bettercap-ng/session (from $GOPATH)
/usr/share/gocode/src/github.com/evilsocket/bettercap-ng/session
Your Gopath is probably fcked up. Yes I see, fix your header:
%global provider github
%global provider_tld com
%global project evilsocket
%global repo bettercap-ng
%global provider_prefix %{provider}.%{provider_tld}/%{project}
Then fix %build:
%build
mkdir -p ./_build/src/%{provider}.%{provider_tld}/%{project}
ln -s $(pwd) ./_build/src/%{provider}.%{provider_tld}/%{project}/%{repo}
export GOPATH=$(pwd)/_build:%{gopath}
%gobuild -o %{name} .
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component