Skip to content

Commit

Permalink
fix: upgrade to go 1.21
Browse files Browse the repository at this point in the history
Signed-off-by: SamMayWork <[email protected]>
  • Loading branch information
SamMayWork committed Jan 11, 2024
1 parent 79011f1 commit ac44d47
Show file tree
Hide file tree
Showing 9 changed files with 152 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21

- name: Build and Test
run: make
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21

- name: Build Docker image
run: make docker
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21

- name: Download Docker image
uses: actions/download-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.21

- name: Update manifest to latest commit for every service
run: ./manifestgen.sh head
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.21

- name: Update manifest to latest commit for every service
run: ./manifestgen.sh head
Expand Down
2 changes: 1 addition & 1 deletion docs/contributors/dev_environment_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This guide will walk you through setting up your machine for contributing to Fir

You will need a few prerequisites set up on your machine before you can build FireFly from source. We recommend doing development on macOS, Linux, or WSL 2.0.

- [Go 1.18](https://golang.org/dl/)
- [Go 1.21](https://golang.org/dl/)
- make
- GCC
- openssl
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/firefly

go 1.19
go 1.21

require (
blockwatch.cc/tzgo v1.17.1
Expand Down
139 changes: 139 additions & 0 deletions go.work.sum

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
},
"build": {
"firefly-builder": {
"image": "golang:1.19-alpine3.16"
"image": "golang:1.21-alpine3.19"
},
"fabric-builder": {
"image": "golang:1.19-alpine3.16",
"image": "golang:1.21-alpine3.19",
"platform": "linux/x86_64"
},
"solidity-builder": {
"image": "ethereum/solc:0.8.11-alpine"
},
"base": {
"image": "alpine:3.16"
"image": "alpine:3.19"
}
},
"ui": {
Expand Down
2 changes: 1 addition & 1 deletion smart_contracts/fabric/custompin-sample/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/firefly/custompin_sample

go 1.18
go 1.21

require (
github.com/hyperledger/fabric-chaincode-go v0.0.0-20210718160520-38d29fabecb9
Expand Down
2 changes: 1 addition & 1 deletion smart_contracts/fabric/firefly-go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18
FROM golang:1.21

WORKDIR /app
COPY firefly.go go.mod go.sum ./
Expand Down
2 changes: 1 addition & 1 deletion smart_contracts/fabric/firefly-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/firefly/chaincode-go

go 1.18
go 1.21

require (
github.com/golang/protobuf v1.4.3
Expand Down

0 comments on commit ac44d47

Please sign in to comment.