joefitzgerald/go-plus

Go Plus Broken for Go < 1.10

Zalgo2462 opened this issue · 2 comments

This commit broke support for Go 1.9 and back by adding the -i flag to go install: 317c375.

Go 1.9 and previous do not provide the -i flag.

The following message is displayed when running go-plus@6.0.2 with go 1.9:

flag provided but not defined: -i
usage: install [build flags] [packages]

Install compiles and installs the packages named by the import paths,
along with their dependencies.

For more about the build flags, see 'go help build'.
For more about specifying packages, see 'go help packages'.

See also: go build, go get, go clean.
zmb3 commented

Thanks for pointing this out.

Go modules are becoming more popular, and the go/packages package that supports many of the Go tools is designed to support the latest 2 Go releases, which is 1.10 and 1.11 at this point.

We aren't intentionally breaking older versions, but I don't expect we will invest much time in supporting earlier versions of Go when many of the tools we rely on don't provide the same support.

@Zalgo2462 as @zmb3 described, the go support policy is N-1 (i.e. the current shipping minor version of go, and the prior minor version). We are always happy to accept PRs that will allow go-plus to work with prior versions, but we won't be investing any time in doing this ourselves.