Skip to content

Conversation

@wking
Copy link
Contributor

@wking wking commented May 9, 2018

Go 1.10 was released on 2018-02-16 and Go only supports the last two major releases (so currently 1.9 and 1.10). Besides ensuring that we are compatible with the currently-maintained releases, this will avoid our current test failure now that golint has dropped support for Go 1.6:

$ make install.tools
go get -u github.com/golang/lint/golint
../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:77: undefined: io.SeekCurrent
../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:80: undefined: io.SeekCurrent
../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:156: undefined: io.SeekCurrent
../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:187: r.declReader.Reset undefined (type bytes.Reader has no field or method Reset)
../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:226: r.declReader.Reset undefined (type bytes.Reader has no field or method Reset)
make: *** [.install.golint] Error 2

.travis.yml Outdated
- 1.7
- 1.6.3
- 1.5.4
- 1.10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gets interpreted as 1.1 (and thus fails) -- you probably want to use 1.10.x anyhow (to get the latest minor release in the 1.10 series).

Same with 1.9.x.

See also https://docs.travis-ci.com/user/languages/go/#Specifying-a-Go-version-to-use.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gets interpreted as 1.1 (and thus fails)...

Thanks. Fixed with 99c66a0 -> 692abcb.

Go 1.10 was released on 2018-02-16 [1] and Go only supports the last
two major releases [2] (so currently 1.9 and 1.10).  Besides ensuring
that we are compatible with the currently-maintained releases, this
will avoid our current test failure now that golint has dropped
support for Go 1.6 [3]:

  $ make install.tools
  go get -u github.com/golang/lint/golint
  # golang.org/x/tools/go/internal/gcimporter
  ../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:77: undefined: io.SeekCurrent
  ../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:80: undefined: io.SeekCurrent
  ../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:156: undefined: io.SeekCurrent
  ../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:187: r.declReader.Reset undefined (type bytes.Reader has no field or method Reset)
  ../../../golang.org/x/tools/go/internal/gcimporter/iimport.go:226: r.declReader.Reset undefined (type bytes.Reader has no field or method Reset)
  make: *** [.install.golint] Error 2

Quoting the versions in the Travis YAML is recommended to avoid them
being interpreted as floating point numbers [4].

[1]: https://golang.org/doc/devel/release.html#go1.10
[2]: https://golang.org/doc/devel/release.html#policy
[3]: https://travis-ci.org/opencontainers/runtime-spec/jobs/376692151#L469
[4]: https://docs.travis-ci.com/user/languages/go/#Specifying-a-Go-version-to-use

Signed-off-by: W. Trevor King <wking@tremily.us>
Avoid:

  $ make .govet
  go vet -x ./...
  schema/validate.go:10:2: cannot find package "github.com/xeipuuv/gojsonschema" in any of:
  	/home/travis/.gimme/versions/go1.10.1.linux.amd64/src/github.com/xeipuuv/gojsonschema (from $GOROOT)
  	/home/travis/gopath/src/github.com/xeipuuv/gojsonschema (from $GOPATH)
  make: *** [.govet] Error 1
  The command "make .govet" exited with 2.

with Go 1.10.1 [1].  Go 1.9.5 doesn't seem to mind [2], but it
shouldn't mind the presence of the dependencies either.

[1]: https://travis-ci.org/opencontainers/runtime-spec/jobs/376991027#L531
[2]: https://travis-ci.org/opencontainers/runtime-spec/jobs/376991028#L529

Signed-off-by: W. Trevor King <wking@tremily.us>
@tianon
Copy link
Member

tianon commented May 9, 2018

LGTM

Approved with PullApprove

1 similar comment
@crosbymichael
Copy link
Member

crosbymichael commented May 9, 2018

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit c102f09 into opencontainers:master May 9, 2018
@wking wking deleted the bump-go branch May 9, 2018 22:49
@vbatts vbatts mentioned this pull request Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants