[pkg-go] Bug#868046: gb uses /usr/lib/go-1.7 even if go 1.8 is installed

Jens Kubieziel jens at kubieziel.de
Tue Jul 11 14:11:36 UTC 2017

Package: gb
Version: 0.4.3-1
Severity: normal

Dear Maintainer,

   * What led up to the situation?

I recently upgraded my system and golang-go was updated to version 1.8. Later I
wanted to execute the command:

`gb build github.com/jteeuwen/go-bindata/go-bindata`

which let to a fatal error. When looking at it with `strace` I found that `gb`
accesses `/usr/libn/go-1.7` which doesn't exist anymore:

user at linux:> strace -e trace=file gb build github.com/jteeuwen/go-bindata/go-bindata |& egrep '1\.7'
stat("/usr/lib/go-1.7/src/vendor/github.com/jteeuwen/go-bindata/go-bindata", 0xc42015a858) = -1 ENOENT (No such file or directory)
stat("/usr/lib/go-1.7/src/github.com/jteeuwen/go-bindata/go-bindata", 0xc42015a928)
= -1 ENOENT (No such file or directory)
stat("/usr/lib/go-1.7/src/vendor/flag", 0xc42015ae08) = -1 ENOENT (No such file or directory)
stat("/usr/lib/go-1.7/src/flag", 0xc42015aed8) = -1 ENOENT (No such file or directory)

There are no accesses to something which contains 1.8 even though `dpkg -l`
tells me that all installed golang packages are at 1.8 (1.8.3-1 or 2:1.8~3).

I don't know if it of relevance, but `apt-cache show gb` tells me `Built-Using:
golang-1.7 (= 1.7.4-1), golang-github-pkg-errors (= 0.8.0-1)`.

I would expect that after an update gb automatically uses the right directory.
If go-1.7 is still there, it could use this and if go-1.8 (or something else)
exists, it should use this directory.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages gb depends on:
ii  golang-go  2:1.8~3
ii  libc6      2.24-12

Versions of packages gb recommends:
ii  golang-golang-x-tools  1:0.0~git20170707.0.bce9606b+ds-1

gb suggests no packages.

-- no debconf information

Jens Kubieziel                                   http://www.kubieziel.de
Man ist kein Milliardär, wenn man seine Millionen noch zählen kann.
Jean-Paul Getty

More information about the Pkg-go-maintainers mailing list