Mailinglist Archive: opensuse-packaging (129 mails)

< Previous Next >
[opensuse-packaging] Re: golang: file paths in go-spew
  • From: Marguerite Su <i@xxxxxxxxxxxxx>
  • Date: Thu, 21 Jan 2016 21:13:43 +0800
  • Message-id: <CAK0PdAkekBmttdqPiAjcp6BQgYMuzkJ9YNoJFuoqoh977moF=A@mail.gmail.com>
Hi, Matwey,

On Thu, Jan 21, 2016 at 8:36 PM, Matwey V. Kornilov
<matwey.kornilov@xxxxxxxxx> wrote:
For some unknown reason, golang linker looks for the spew.a in the
wrong place (note there is no contrib in path).
What is wrong here?

Glad to see you here in the list.

this is because:

the test needs spew.a present in the build machine.

but you just wrote:

BuildRequires: golang-packaging
BuildRequires: golang(github.com/stretchr/testify/assert)

the command triggerd by %gotest is:

GOPATH=/home/abuild/BUILD/go:/usr/lib64/go/contrib go test -x $IMPORTPATH

while spew.a doesn't exist in that path (although that path is
invisible to you beccause the call triggers from ruby), go will
fallback to its standard path, resulting what you see.

Marguerite
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References