Skip to content

Commit

Permalink
Update to go 1.13
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Logan <brett.t.logan@ibm.com>
  • Loading branch information
Brett Logan authored and sykesm committed Apr 9, 2020
1 parent 3b5b58b commit 5c2a996
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ci/azure-pipelines-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pr: none
variables:
GOPATH: $(Agent.BuildDirectory)/go
PATH: $(Agent.BuildDirectory)/go/bin:/usr/local/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
GOVER: 1.12.12
GOVER: 1.13.9

jobs:
- job: UnitTests
Expand Down
2 changes: 1 addition & 1 deletion ci/azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ variables:
- name: GOPATH
value: $(Agent.BuildDirectory)/go
- name: GOVER
value: 1.12.12
value: 1.13.9

stages:
- stage: BuildBinaries
Expand Down
2 changes: 1 addition & 1 deletion ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pr:
variables:
GOPATH: $(Agent.BuildDirectory)/go
PATH: $(Agent.BuildDirectory)/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
GOVER: 1.12.12
GOVER: 1.13.9

jobs:
- job: VerifyBuild
Expand Down
1 change: 1 addition & 0 deletions common/crypto/tlsgen/ca_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func TestTLSCA(t *testing.T) {
tlsCfg := &tls.Config{
RootCAs: x509.NewCertPool(),
Certificates: []tls.Certificate{cert},
MaxVersion: tls.VersionTLS12,
}
tlsCfg.RootCAs.AppendCertsFromPEM(ca.CertBytes())
tlsOpts := grpc.WithTransportCredentials(credentials.NewTLS(tlsCfg))
Expand Down
3 changes: 2 additions & 1 deletion core/chaincode/accesscontrol/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ type ccClient struct {

func newClient(t *testing.T, port int, cert *tls.Certificate, peerCACert []byte) (*ccClient, error) {
tlsCfg := &tls.Config{
RootCAs: x509.NewCertPool(),
RootCAs: x509.NewCertPool(),
MaxVersion: tls.VersionTLS12,
}

tlsCfg.RootCAs.AppendCertsFromPEM(peerCACert)
Expand Down
3 changes: 0 additions & 3 deletions core/testutil/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ SPDX-License-Identifier: Apache-2.0
package testutil

import (
"flag"
"fmt"
"io/ioutil"
"runtime"
Expand All @@ -24,8 +23,6 @@ var configLogger = flogging.MustGetLogger("config")

// SetupTestConfig setup the config during test execution
func SetupTestConfig() {
flag.Parse()

// Now set the configuration file
viper.SetEnvPrefix("CORE")
viper.AutomaticEnv()
Expand Down
2 changes: 1 addition & 1 deletion devenv/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ docker run --rm busybox echo All good
# ----------------------------------------------------------------
# Install Golang
# ----------------------------------------------------------------
GO_VER=1.12.12
GO_VER=1.13.9
GO_URL=https://storage.googleapis.com/golang/go${GO_VER}.linux-amd64.tar.gz

# Set Go environment variables needed by other scripts
Expand Down
4 changes: 2 additions & 2 deletions images/testenv/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
FROM golang:1.12-alpine as builder
FROM golang:1.13.9-alpine as builder

RUN apk add --no-cache \
alpine-sdk \
Expand Down Expand Up @@ -35,7 +35,7 @@ USER root
WORKDIR $GOPATH/src/github.com/hyperledger/fabric
RUN EXECUTABLES= make gotools

FROM golang:1.12-alpine
FROM golang:1.13.9-alpine
RUN apk add --no-cache \
gcc \
bash \
Expand Down

0 comments on commit 5c2a996

Please sign in to comment.