Skip to content

Commit 21f14ed

Browse files
committed
Remove support for Go < 1.7
Package golang.org/x/tools/imports introduces a dependency to the `context` package, which was added to the Go stdlib in Go v1.7. See also: golang/tools@165bdd6
1 parent 6568b29 commit 21f14ed

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ install: go get golang.org/x/tools/imports/...
55
script: go test -v ./...
66

77
go:
8-
- 1.2.x
9-
- 1.3.x
10-
- 1.4.x
11-
- 1.5.x
12-
- 1.6.x
138
- 1.7.x
149
- 1.8.x
1510
- 1.9.x

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Github user [@mna][6] created the package in April 2015, and [@breml][5] is the
1818

1919
### Breaking Changes since v1.0.0
2020

21-
* Removed support for Go v1.1.x in []() due to an incompatibility of [golang.org/x/tools/imports](https://godoc.org/golang.org/x/tools/imports) with [go/ast](https://godoc.org/go/ast) of go v1.1.x.
21+
* Removed support for Go < v1.7 due to the requirement of the package `context` in [golang.org/x/tools/imports](https://godoc.org/golang.org/x/tools/imports), which was added to the Go stdlib in Go v1.7. This is in compliance with the [Go Release Policy](https://golang.org/doc/devel/release.html#policy) respectively the [Go Release Maintenance](https://github.com/golang/go/wiki/Go-Release-Cycle#release-maintenance), which states support for each major release until there are two newer major releases.
2222

2323
## Installation
2424

0 commit comments

Comments
 (0)