Skip to content

Commit

Permalink
Bump Go to 1.21.0
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Barger <artem@bargr.net>
  • Loading branch information
C0rWin committed Sep 18, 2023
1 parent 9723c4a commit a86e08f
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/broken-link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- .github/workflows/broken-link-checker.yml

env:
GO_VER: 1.20.7
GO_VER: 1.21.0

jobs:
broken-lint-checker:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- v3.*

env:
GO_VER: 1.20.7
GO_VER: 1.21.0
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.0

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.7
go-version: 1.21.0
- name: Scan
run: make scan
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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.0
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"
"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 @@ -13,6 +13,7 @@ import (
"io"
"net"
"net/http"
"net/url"
"os"
"path/filepath"
"syscall"
Expand Down Expand Up @@ -198,7 +199,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 @@ -76,8 +76,8 @@ 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
go version # => go1.20.7 darwin/amd64
brew install go@1.21.0
go version # => go1.21.0 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 @@ -270,6 +270,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.0

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

0 comments on commit a86e08f

Please sign in to comment.