Bump Go version to 1.12 (#1290)

This commit is contained in:
Ta-Ching Chen
2019-08-28 13:47:40 +08:00
committed by GitHub
parent 1040a0d7e9
commit e762471d78
6 changed files with 6 additions and 16 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ branches:
language: go
go:
- 1.11.6
- 1.12.x
env:
- KUBECONFIG=${HOME}/.kube/config PATH=$HOME/k8scli:$HOME/tool:$HOME/google-cloud-sdk/bin:${PATH} GO111MODULE=on DOCKER_CACHE_DIR=${HOME}/docker/
+1 -1
View File
@@ -1,7 +1,7 @@
FROM alpine:3.10 as base
RUN apk add --update ca-certificates
FROM golang:1.11-alpine as fission-builder
FROM golang:1.12-alpine as fission-builder
RUN apk add bash ca-certificates git gcc g++ libc-dev
ARG GOPKG=github.com/fission/fission
+1 -1
View File
@@ -1,7 +1,7 @@
FROM alpine:3.10 as base
RUN apk add --update ca-certificates
FROM golang:1.11-alpine as builder
FROM golang:1.12-alpine as builder
RUN apk add bash ca-certificates git gcc g++ libc-dev
ARG GOPKG=github.com/fission/fission
+1 -1
View File
@@ -1,7 +1,7 @@
FROM alpine:3.10 as base
RUN apk add --update ca-certificates
FROM golang:1.11-alpine as builder
FROM golang:1.12-alpine as builder
RUN apk add bash ca-certificates git gcc g++ libc-dev
ARG GOPKG=github.com/fission/fission
+1 -9
View File
@@ -4,12 +4,4 @@ set -o errexit
set -o nounset
set -o pipefail
find_files() {
find . -not \( \
\( \
-wholename '*/vendor/*' \
\) -prune \
\) -name '*.go'
}
find_files | xargs -I@ bash -c "go tool vet @"
go vet -v $(go list ./...| grep -v vendor)
+1 -3
View File
@@ -128,9 +128,7 @@ func (executor *Executor) serveCreateFuncServices() {
// It normally happened if there are multiple requests are
// waiting for the same function and executor failed to cre-
// ate service for function.
err = errors.Wrapf(err, "error getting service for function",
zap.String("function_name", m.Name),
zap.String("function_namespace", m.Namespace))
err = errors.Wrapf(err, "error getting service for function %v in namespace %v", m.Name, m.Namespace)
req.respChan <- &createFuncServiceResponse{
funcSvc: fsvc,
err: err,