From ce653b1cfc3d6724a31cc2ea7fffa075ccc04b6a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 6 Dec 2020 23:49:27 +0100 Subject: [PATCH] switch to go 1.15 --- .drone.jsonnet | 12 ++++++------ .drone.yml | 18 +++++++++--------- CHANGELOG.md | 2 ++ 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 57ea7fa..beba9ae 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -9,7 +9,7 @@ local PipelineTest = { steps: [ { name: 'staticcheck', - image: 'golang:1.14', + image: 'golang:1.15', commands: [ 'go run honnef.co/go/tools/cmd/staticcheck ./...', ], @@ -22,7 +22,7 @@ local PipelineTest = { }, { name: 'lint', - image: 'golang:1.14', + image: 'golang:1.15', commands: [ 'go run golang.org/x/lint/golint -set_exit_status ./...', ], @@ -35,7 +35,7 @@ local PipelineTest = { }, { name: 'vet', - image: 'golang:1.14', + image: 'golang:1.15', commands: [ 'go vet ./...', ], @@ -48,7 +48,7 @@ local PipelineTest = { }, { name: 'test', - image: 'golang:1.14', + image: 'golang:1.15', commands: [ 'go test -cover ./...', ], @@ -83,7 +83,7 @@ local PipelineBuildBinaries = { steps: [ { name: 'build', - image: 'techknowlogick/xgo:go-1.14.x', + image: 'techknowlogick/xgo:go-1.15.x', commands: [ '[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}', 'mkdir -p release/', @@ -152,7 +152,7 @@ local PipelineBuildContainer(arch='amd64') = { steps: [ { name: 'build', - image: 'golang:1.14', + image: 'golang:1.15', commands: [ '[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}', 'go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/' + arch + '/github-releases-notifier ./cmd/github-releases-notifier', diff --git a/.drone.yml b/.drone.yml index ac1308e..a855694 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ platform: steps: - name: staticcheck - image: golang:1.14 + image: golang:1.15 commands: - go run honnef.co/go/tools/cmd/staticcheck ./... volumes: @@ -16,7 +16,7 @@ steps: path: /go - name: lint - image: golang:1.14 + image: golang:1.15 commands: - go run golang.org/x/lint/golint -set_exit_status ./... volumes: @@ -24,7 +24,7 @@ steps: path: /go - name: vet - image: golang:1.14 + image: golang:1.15 commands: - go vet ./... volumes: @@ -32,7 +32,7 @@ steps: path: /go - name: test - image: golang:1.14 + image: golang:1.15 commands: - go test -cover ./... volumes: @@ -62,7 +62,7 @@ platform: steps: - name: build - image: techknowlogick/xgo:go-1.14.x + image: techknowlogick/xgo:go-1.15.x commands: - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - mkdir -p release/ @@ -122,7 +122,7 @@ platform: steps: - name: build - image: golang:1.14 + image: golang:1.15 commands: - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/amd64/github-releases-notifier ./cmd/github-releases-notifier @@ -208,7 +208,7 @@ platform: steps: - name: build - image: golang:1.14 + image: golang:1.15 commands: - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm64/github-releases-notifier ./cmd/github-releases-notifier @@ -294,7 +294,7 @@ platform: steps: - name: build - image: golang:1.14 + image: golang:1.15 commands: - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm/github-releases-notifier ./cmd/github-releases-notifier @@ -468,6 +468,6 @@ depends_on: --- kind: signature -hmac: 025ee4ad77d1a0b278ee593a8b6b0b56d2d38066364cf3d6bfdf14ab535367c2 +hmac: 17ada3730f0eee0944851ad37959cd2a8f15060a20e034632bc868d120632ee4 ... diff --git a/CHANGELOG.md b/CHANGELOG.md index c8b0766..89abba7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,4 @@ - ENHANCEMENT - Update github.com/shurcooL/githubv4 commit hash to 234843c +- INTERNAL + - switch to go 1.15