Bitrise-webhooks : "bitrise run test" failing

#1

I’m working on https://github.com/bitrise-io/bitrise-webhooks/pull/3 and having issues with one of the pre-PR-submission steps. When I try to run “bitrise run test” I receive the following error from a “go vet” step:

±-----------------------------------------------------------------------------+
| (3) Go Vet |
±-----------------------------------------------------------------------------+
| id: script |
| version: 1.1.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2017-02-13T16:13:59-07:00 |
±-----------------------------------------------------------------------------+
| |
panic: inconsistent import:
var time.UTC *time.Location
previously imported as:
var UTC *time.Location
[recovered]
panic: inconsistent import:
var time.UTC *time.Location
previously imported as:
var UTC *time.Location

Any ideas? This doesn’t appear to be related to my changes in any way.

0 Likes

#2

Managed to resolve this with a “go install” per comments I found in another project’s issue list.

1 Like

#3

Hmm… That’s strange.

What’s your:

go version

?

Since Go 1.6 vendor should be handled automatically and you should not have an issue like this AFAIK.

Also, did you do a clean fork, or did you continue working in your previous fork? We did a couple of update in the last ~6-12 months which should make the project to “just work, out of the box” after a clean git clone if you have Go 1.6+

0 Likes

#4

Just tried a full clean git clone https://github.com/bitrise-io/bitrise-webhooks.git $GOPATH/src/github.com/bitrise-io/bitrise-webhooks and I could run bitrise run test right after that, without modifying anything.

$ bitrise version
1.4.3

$ go version
go version go1.7.4 linux/amd64
0 Likes