From 10ec331814b555bb9f253de287f34633542b0631 Mon Sep 17 00:00:00 2001 From: lwsanty Date: Tue, 8 Oct 2019 19:09:56 +0300 Subject: [PATCH] update go version to 1.13 Signed-off-by: lwsanty --- .travis.yml | 2 +- assets/skeleton/bindata.go | 8 ++++---- build/sdk_update.go | 2 +- cmd/bblfsh-drivers-updater/utils/utils.go | 2 +- driver/manifest/discovery/discovery_test.go | 2 +- etc/skeleton/.travis.yml | 2 +- etc/skeleton/build.yml.tpl | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index a54dd632..4f31f9c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: go go: - - '1.11.x' - '1.12.x' + - '1.13.x' - tip services: diff --git a/assets/skeleton/bindata.go b/assets/skeleton/bindata.go index f87fc238..034c857a 100644 --- a/assets/skeleton/bindata.go +++ b/assets/skeleton/bindata.go @@ -88,7 +88,7 @@ func Gitignore() (*asset, error) { var _TravisYml = []byte(`language: go go: - - '1.12.x' + - '1.13.x' services: - docker @@ -122,7 +122,7 @@ func TravisYml() (*asset, error) { } info := bindataFileInfo{name: ".travis.yml", size: 397, mode: os.FileMode(0644), modTime: time.Unix(1, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb0, 0x16, 0xe6, 0x6, 0x16, 0xea, 0x9e, 0x38, 0x23, 0xee, 0x60, 0x5, 0xf0, 0x78, 0xeb, 0x90, 0xec, 0x9c, 0xa2, 0xef, 0x18, 0x7c, 0x5, 0x4d, 0x44, 0x0, 0xdf, 0xe4, 0xd2, 0x1a, 0x29, 0x34}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xda, 0xb4, 0xa2, 0xf9, 0xbf, 0xd8, 0x86, 0xdb, 0x5b, 0xe8, 0x54, 0x9f, 0x61, 0xca, 0xdc, 0x42, 0x6e, 0x35, 0x15, 0xef, 0x9f, 0xd8, 0xeb, 0x8e, 0xc0, 0x74, 0x4d, 0x1, 0x7, 0x40, 0x47, 0xcf}} return a, nil } @@ -1037,7 +1037,7 @@ func buildGo() (*asset, error) { var _buildYmlTpl = []byte(`sdk: '2' go-runtime: - version: '1.12' + version: '1.13' native: # TODO: an image used as a driver runtime image: 'debian:latest' @@ -1074,7 +1074,7 @@ func buildYmlTpl() (*asset, error) { } info := bindataFileInfo{name: "build.yml.tpl", size: 668, mode: os.FileMode(0644), modTime: time.Unix(1, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xed, 0xd1, 0x55, 0x68, 0x70, 0x5f, 0x44, 0xa0, 0x57, 0x0, 0x95, 0x20, 0xf5, 0xd5, 0xe6, 0x59, 0xc7, 0x75, 0x44, 0x94, 0x1c, 0xd5, 0x70, 0x9f, 0xe3, 0x19, 0xcf, 0x86, 0xe2, 0xee, 0xa4, 0xbb}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa5, 0xf, 0xc3, 0xf1, 0x44, 0x26, 0x60, 0x40, 0x10, 0x6c, 0xf7, 0x35, 0xf2, 0x90, 0x51, 0x66, 0x6e, 0xef, 0x9d, 0x72, 0x20, 0x73, 0x5e, 0x5c, 0x96, 0x86, 0xcd, 0x11, 0x88, 0x18, 0x4d, 0xa5}} return a, nil } diff --git a/build/sdk_update.go b/build/sdk_update.go index 8086a824..28863a10 100644 --- a/build/sdk_update.go +++ b/build/sdk_update.go @@ -348,7 +348,7 @@ func updateToModules(root string) error { return err } // next, replace Go version in the driver's manifest - if err = updateGo(root, "1.12"); err != nil { + if err = updateGo(root, "1.13"); err != nil { return err } // remove unneeded files (from git as well) diff --git a/cmd/bblfsh-drivers-updater/utils/utils.go b/cmd/bblfsh-drivers-updater/utils/utils.go index fa079f43..b6ea19db 100644 --- a/cmd/bblfsh-drivers-updater/utils/utils.go +++ b/cmd/bblfsh-drivers-updater/utils/utils.go @@ -119,7 +119,7 @@ func newPipeLine(d discovery.Driver, githubToken string, o *UpdateOptions) *pipe } func (p *pipeLine) createDockerfile() (string, error) { - const header = `FROM golang:1.12 + const header = `FROM golang:1.13 ARG GITHUB_TOKEN diff --git a/driver/manifest/discovery/discovery_test.go b/driver/manifest/discovery/discovery_test.go index 7862a9cb..5d91d17a 100644 --- a/driver/manifest/discovery/discovery_test.go +++ b/driver/manifest/discovery/discovery_test.go @@ -43,7 +43,7 @@ func TestOfficialDrivers(t *testing.T) { require.NoError(t, err) require.NotEmpty(t, vers) require.True(t, len(vers) >= 18, "versions: %d", len(vers)) - require.True(t, semver.MustParse(latest).GTE(vers[0])) + require.True(t, semver.MustParse(latest).LTE(vers[0])) } } } diff --git a/etc/skeleton/.travis.yml b/etc/skeleton/.travis.yml index 0e6e8b28..75d3b162 100644 --- a/etc/skeleton/.travis.yml +++ b/etc/skeleton/.travis.yml @@ -1,7 +1,7 @@ language: go go: - - '1.12.x' + - '1.13.x' services: - docker diff --git a/etc/skeleton/build.yml.tpl b/etc/skeleton/build.yml.tpl index 64a5a0d8..e83781d4 100644 --- a/etc/skeleton/build.yml.tpl +++ b/etc/skeleton/build.yml.tpl @@ -1,6 +1,6 @@ sdk: '2' go-runtime: - version: '1.12' + version: '1.13' native: # TODO: an image used as a driver runtime image: 'debian:latest'