[Bug 1672745] Re: go vet panic: inconsistent import

dino99 1672745 at bugs.launchpad.net
Sun Feb 25 09:35:36 UTC 2018


That version is now dead
http://news.softpedia.com/news/ubuntu-17-04-zesty-zapus-has-reached-end-of-life-upgrade-to-ubuntu-17-10-now-519360.shtml

** Changed in: golang-defaults (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1672745

Title:
  go vet panic: inconsistent import

Status in golang-defaults package in Ubuntu:
  Invalid

Bug description:
  Steps to reproduce:

  1) git clone https://github.com/juju/juju  # probably any golang source code will trigger the problem
  2) cd juju
  3) go vet ...

  Here is a sample of one of the errors:

  go version go1.7.4
  checking: go fmt ...
  checking: go vet ...
  panic: inconsistent import:
   var bufio.ErrInvalidUnreadByte error
  previously imported as:
   var ErrInvalidUnreadByte error
   [recovered]
   panic: inconsistent import:
   var bufio.ErrInvalidUnreadByte error
  previously imported as:
   var ErrInvalidUnreadByte error

  goroutine 1 [running]:
  panic(0x674b80, 0xc4204a70c0)
   /usr/lib/go-1.7/src/runtime/panic.go:500 +0x1a1
  go/types.(*Checker).handleBailout(0xc42001c2a0, 0xc4208254a0)
   /usr/lib/go-1.7/src/go/types/check.go:213 +0xae
  panic(0x674b80, 0xc4204a70c0)
   /usr/lib/go-1.7/src/runtime/panic.go:458 +0x243
  go/internal/gcimporter.(*importer).declare(0xc420a41380, 0x7f64a0, 0xc4209dd3b0)
   /usr/lib/go-1.7/src/go/internal/gcimporter/bimport.go:175 +0x17c
  go/internal/gcimporter.(*importer).obj(0xc420a41380, 0xfffffffffffffffc)
   /usr/lib/go-1.7/src/go/internal/gcimporter/bimport.go:195 +0x1b4
  go/internal/gcimporter.BImportData(0xc420011110, 0xc4205fc000, 0x17e40, 0x1fe00, 0xc420800a91, 0x5, 0x0, 0x5, 0x10, 0x10)
   /usr/lib/go-1.7/src/go/internal/gcimporter/bimport.go:88 +0x390
  go/internal/gcimporter.Import(0xc420011110, 0xc420800a91, 0x5, 0xc420796e00, 0x3, 0xc4203755e0, 0x0, 0x0)
   /usr/lib/go-1.7/src/go/internal/gcimporter/gcimporter.go:166 +0x551
  go/importer.gcimports.ImportFrom(0xc420011110, 0xc420800a91, 0x5, 0xc420796e00, 0x3, 0x0, 0x1, 0x2, 0x0)
   /usr/lib/go-1.7/src/go/importer/importer.go:70 +0x67
  go/types.(*Checker).collectObjects(0xc42001c2a0)
   /usr/lib/go-1.7/src/go/types/resolver.go:191 +0x826
  go/types.(*Checker).checkFiles(0xc42001c2a0, 0xc420430580, 0xb, 0x10, 0x0, 0x0)
   /usr/lib/go-1.7/src/go/types/check.go:225 +0xaa
  go/types.(*Checker).Files(0xc42001c2a0, 0xc420430580, 0xb, 0x10, 0xc4201be120, 0xc420825518)
   /usr/lib/go-1.7/src/go/types/check.go:218 +0x49
  go/types.(*Config).Check(0xc4209d6140, 0xc420959d00, 0x3, 0xc4201a8000, 0xc420430580, 0xb, 0x10, 0xc420652690, 0x101, 0xc4200001a0, ...)
   /usr/lib/go-1.7/src/go/types/api.go:344 +0x1a3
  main.(*Package).check(0xc42071de60, 0xc4201a8000, 0xc420430580, 0xb, 0x10, 0x0, 0xc420a28000)
   /usr/lib/go-1.7/src/cmd/vet/types.go:76 +0x370
  main.doPackage(0xc420965d70, 0x3, 0xc420910ea0, 0xb, 0x12, 0x0, 0x0)
   /usr/lib/go-1.7/src/cmd/vet/main.go:336 +0x999
  main.doPackageDir(0xc420965d70, 0x3)
   /usr/lib/go-1.7/src/cmd/vet/main.go:284 +0x606
  main.visit(0xc420965d70, 0x3, 0x7f54a0, 0xc4209bf5f0, 0x0, 0x0, 0x0, 0x0)
   /usr/lib/go-1.7/src/cmd/vet/main.go:371 +0xf3
  path/filepath.walk(0xc420965d70, 0x3, 0x7f54a0, 0xc4209bf5f0, 0x6f7a20, 0x0, 0x0)
   /usr/lib/go-1.7/src/path/filepath/path.go:351 +0x81
  path/filepath.walk(0x7ffc02fd99d6, 0x1, 0x7f54a0, 0xc4201584e0, 0x6f7a20, 0x0, 0xc420158410)
   /usr/lib/go-1.7/src/path/filepath/path.go:376 +0x344
  path/filepath.Walk(0x7ffc02fd99d6, 0x1, 0x6f7a20, 0xc, 0xc420158410)
  	/usr/lib/go-1.7/src/path/filepath/path.go:398 +0xd5
  main.walkDir(0x7ffc02fd99d6, 0x1)
  	/usr/lib/go-1.7/src/cmd/vet/main.go:386 +0x41
  main.main()
  	/usr/lib/go-1.7/src/cmd/vet/main.go:240 +0x2cb

  
  There are some upstream bugs reporting the same issue[0][1][2],  a comment from Robert Griesemer[3] sheds some light into the root cause.

  [0] https://github.com/golang/go/issues/15728
  [1] https://github.com/golang/go/issues/16680
  [2] https://github.com/golang/go/issues/16112
  [3] https://github.com/golang/go/issues/16680#issuecomment-240314047

  ProblemType: Bug
  DistroRelease: Ubuntu 17.04
  Package: golang-go 2:1.7~1ubuntu1
  Uname: Linux 4.10.1-041001-generic x86_64
  ApportVersion: 2.20.4-0ubuntu2
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Tue Mar 14 11:26:26 2017
  InstallationDate: Installed on 2015-10-19 (511 days ago)
  InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Release amd64 (20150422)
  SourcePackage: golang-defaults
  UpgradeStatus: Upgraded to zesty on 2017-03-13 (1 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-defaults/+bug/1672745/+subscriptions



More information about the foundations-bugs mailing list