Skip to content

Commit

Permalink
Bump Go to 1.21.3 (release-2.5) (#4478)
Browse files Browse the repository at this point in the history
Bump Go to 1.21.3 (release-2.5).

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
  • Loading branch information
denyeart authored Oct 18, 2023
1 parent 9acd8f1 commit e85ee9f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
tags: [ v2.* ]

env:
GO_VER: 1.20.7
GO_VER: 1.21.3
UBUNTU_VER: 20.04
FABRIC_VER: ${{ github.ref_name }}
DOCKER_REGISTRY: ${{ github.repository_owner == 'hyperledger' && 'docker.io' || 'ghcr.io' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
env:
GOPATH: /opt/go
PATH: /opt/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
GO_VER: 1.20.7
GO_VER: 1.21.3

jobs:
basic-checks:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ METADATA_VAR += CommitSHA=$(EXTRA_VERSION)
METADATA_VAR += BaseDockerLabel=$(BASE_DOCKER_LABEL)
METADATA_VAR += DockerNamespace=$(DOCKER_NS)

GO_VER = 1.20.7
GO_VER = 1.21.3
GO_TAGS ?=

RELEASE_EXES = orderer $(TOOLS_EXES)
Expand Down
4 changes: 3 additions & 1 deletion common/fabhttp/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"io/ioutil"
"net"
"net/http"
"net/url"
"os"
"path/filepath"
"syscall"
Expand Down Expand Up @@ -169,7 +170,8 @@ var _ = Describe("Server", func() {
Expect(err).NotTo(HaveOccurred())

_, err = unauthClient.Get(fmt.Sprintf("https://%s/healthz", server.Addr()))
Expect(err).To(MatchError(ContainSubstring("remote error: tls: bad certificate")))
Expect(err).To(BeAssignableToTypeOf(&url.Error{}))
Expect(err.(*url.Error).Err.Error()).To(ContainSubstring("remote error: tls: certificate required"))
})
})

Expand Down
4 changes: 3 additions & 1 deletion core/operations/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"io/ioutil"
"net"
"net/http"
"net/url"
"os"
"path/filepath"
"syscall"
Expand Down Expand Up @@ -199,7 +200,8 @@ var _ = Describe("System", func() {
Expect(err).NotTo(HaveOccurred())

_, err = unauthClient.Get(fmt.Sprintf("https://%s/healthz", system.Addr()))
Expect(err).To(MatchError(ContainSubstring("remote error: tls: bad certificate")))
Expect(err).To(BeAssignableToTypeOf(&url.Error{}))
Expect(err.(*url.Error).Err.Error()).To(ContainSubstring("remote error: tls: certificate required"))
})
})

Expand Down
4 changes: 2 additions & 2 deletions docs/source/prereqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ Optional: Install the latest Fabric supported version of [Go](https://golang.org
installed (only required if you will be writing Go chaincode or SDK applications).

```shell
$ brew install go@1.20.7
$ brew install go@1.21.3
$ go version
go1.20.7 darwin/amd64
go1.21.3 darwin/amd64
```

### JQ
Expand Down
1 change: 1 addition & 0 deletions orderer/consensus/etcdraft/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ var _ = Describe("Chain", func() {
chain.Halt()

By("Create new chain")
opts.MemoryStorage = raft.NewMemoryStorage()
_, err := etcdraft.NewChain(support, opts, configurator, nil, cryptoProvider, noOpBlockPuller, nil, observeC)
Expect(err).NotTo(HaveOccurred())
})
Expand Down
2 changes: 1 addition & 1 deletion vagrant/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# SPDX-License-Identifier: Apache-2.0

GOROOT='/opt/go'
GO_VERSION=1.20.7
GO_VERSION=1.21.3

# ----------------------------------------------------------------
# Install Golang
Expand Down

0 comments on commit e85ee9f

Please sign in to comment.