drop support for go 1.9

This commit is contained in:
Michael Muré 2019-11-03 14:06:29 +01:00
parent f72a9dc62b
commit 912b5ca320
No known key found for this signature in database
GPG Key ID: A4457C029293126F
7 changed files with 22 additions and 22 deletions

View File

@ -1,13 +1,13 @@
matrix:
include:
- language: go
go: "1.9"
- language: go
go: "1.10"
- language: go
go: "1.11"
- language: go
go: "1.12"
- language: go
go: "1.13"
- language: node_js
node_js: 8
before_install:

6
Gopkg.lock generated
View File

@ -321,9 +321,9 @@
version = "v1.2.2"
[[projects]]
digest = "1:823766f4e1833bd562339317d905475fe46789da3863b2da7a1871f9f12bb4b3"
digest = "1:8d784da270f610f505e2c9785faec4c81d4a6a6a1034412685a4bf2cffe24cef"
name = "github.com/theckman/goconstraint"
packages = ["go1.9/gte"]
packages = ["go1.10/gte"]
pruneopts = "UT"
revision = "93babf24513d0e8277635da8169fcc5a46ae3f6a"
version = "v1.11.0"
@ -490,7 +490,7 @@
"github.com/spf13/cobra/doc",
"github.com/stretchr/testify/assert",
"github.com/stretchr/testify/require",
"github.com/theckman/goconstraint/go1.9/gte",
"github.com/theckman/goconstraint/go1.10/gte",
"github.com/vektah/gqlgen/client",
"github.com/vektah/gqlparser",
"github.com/vektah/gqlparser/ast",

View File

@ -9,8 +9,8 @@ package main
import (
"github.com/MichaelMure/git-bug/commands"
// minimal go version is 1.9
_ "github.com/theckman/goconstraint/go1.9/gte"
// minimal go version is 1.10
_ "github.com/theckman/goconstraint/go1.10/gte"
)
func main() {

View File

@ -0,0 +1,8 @@
// The contents of this file has been released in to the Public Domain.
// Package gtego110 should only be used as a blank import. If imported, it
// will only compile if the Go runtime version is >= 1.10.
package gtego110
// This will fail to compile if the Go runtime version isn't >= 1.10.
var _ = __SOFTWARE_REQUIRES_GO_VERSION_1_10__

View File

@ -0,0 +1,7 @@
// The contents of this file has been released in to the Public Domain.
// +build go1.10
package gtego110
const __SOFTWARE_REQUIRES_GO_VERSION_1_10__ = uint8(0)

View File

@ -1,8 +0,0 @@
// The contents of this file has been released in to the Public Domain.
// Package gtego19 should only be used as a blank import. If imported, it
// will only compile if the Go runtime version is >= 1.9.
package gtego19
// This will fail to compile if the Go runtime version isn't >= 1.9.
var _ = __SOFTWARE_REQUIRES_GO_VERSION_1_9__

View File

@ -1,7 +0,0 @@
// The contents of this file has been released in to the Public Domain.
// +build go1.9
package gtego19
const __SOFTWARE_REQUIRES_GO_VERSION_1_9__ = uint8(0)