Skip to content

Commit

Permalink
Update to Go 1.23
Browse files Browse the repository at this point in the history
Go 1.24 was released on 2025-02-11. At this point Go 1.22 become an
unsupported Go runtime.

Signed-off-by: Mark S. Lewis <[email protected]>
  • Loading branch information
bestbeforetoday committed Feb 12, 2025
1 parent b8d462c commit df56ae2
Show file tree
Hide file tree
Showing 29 changed files with 31 additions and 226 deletions.
2 changes: 1 addition & 1 deletion .github/actions/test-network-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Set up the Test Network Runtime
inputs:
go-version:
description: Version of go
default: '1.22'
default: '1.23'
node-version:
description: Version of node
default: 18.x
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ run-name: ${{ github.actor }} is linting fabric-samples 🎉
on:
workflow_dispatch:
push:
branches: [ "main", "release-2.5" ]
branches: ["main", "release-2.5"]
pull_request:
branches: [ "main", "release-2.5" ]
branches: ["main", "release-2.5"]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
GO_VER: '1.22'
GO_VER: "1.23"
NODE_VER: 18.x
JAVA_VER: 11.x

Expand Down
2 changes: 1 addition & 1 deletion asset-transfer-abac/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/asset-transfer-abac/chaincode-go

go 1.22.0
go 1.23.0

require github.com/hyperledger/fabric-contract-api-go/v2 v2.2.0

Expand Down
2 changes: 1 addition & 1 deletion asset-transfer-basic/application-gateway-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module assetTransfer

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-gateway v1.7.0
Expand Down
2 changes: 1 addition & 1 deletion asset-transfer-basic/chaincode-external/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/asset-transfer-basic/chaincode-external

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion asset-transfer-basic/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/asset-transfer-basic/chaincode-go

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion asset-transfer-basic/rest-api-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module rest-api-go

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-gateway v1.7.0
Expand Down
2 changes: 1 addition & 1 deletion asset-transfer-events/application-gateway-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module assetTransfer

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-gateway v1.7.0
Expand Down
2 changes: 1 addition & 1 deletion asset-transfer-events/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/asset-transfer-events/chaincode-go

go 1.22.0
go 1.23.0

require github.com/hyperledger/fabric-contract-api-go/v2 v2.2.0

Expand Down
2 changes: 1 addition & 1 deletion asset-transfer-ledger-queries/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/asset-transfer-ledger-queries/chaincode-go

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0
Expand Down
8 changes: 2 additions & 6 deletions asset-transfer-private-data/application-gateway-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
module assetTransfer

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-gateway v1.6.0
github.com/hyperledger/fabric-protos-go-apiv2 v0.3.3
google.golang.org/grpc v1.67.0
)

require (
github.com/golang/protobuf v1.5.3 // indirect
github.com/hyperledger/fabric-protos-go v0.0.0-20200707132912-fee30f3ccd23 // indirect
github.com/hyperledger/fabric-protos-go-apiv2 v0.3.3 // indirect
github.com/hyperledger/fabric-sdk-go v1.0.0 // indirect
github.com/miekg/pkcs11 v1.1.1 // indirect
github.com/pkg/errors v0.8.1 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/sys v0.25.0 // indirect
Expand Down
191 changes: 0 additions & 191 deletions asset-transfer-private-data/application-gateway-go/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion asset-transfer-private-data/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/asset-transfer-private-data/chaincode-go

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion asset-transfer-secured-agreement/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/chaincode/tradingMarbles

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion auction-dutch/chaincode-go-auditor/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/auction/dutch-auction/chaincode-go-auditor

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion auction-dutch/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/auction/dutch-auction/chaincode-go

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion auction-simple/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/auction/chaincode-go

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion hardware-security-module/application-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/hardware-security-module/application-go

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-gateway v1.7.0
Expand Down
2 changes: 1 addition & 1 deletion high-throughput/application-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/high-throughput/application-go

go 1.22.0
go 1.23.0

require github.com/hyperledger/fabric-sdk-go v1.0.0

Expand Down
2 changes: 1 addition & 1 deletion high-throughput/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/high-throughput/chaincode

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go v0.0.0-20230228194215-b84622ba6a7a
Expand Down
2 changes: 1 addition & 1 deletion token-erc-1155/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module erc1155

go 1.22.0
go 1.23.0

require github.com/hyperledger/fabric-contract-api-go/v2 v2.2.0

Expand Down
2 changes: 1 addition & 1 deletion token-erc-20/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/token-erc-20/chaincode-go

go 1.22.0
go 1.23.0

require github.com/hyperledger/fabric-contract-api-go/v2 v2.2.0

Expand Down
2 changes: 1 addition & 1 deletion token-erc-721/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/token-erc-721/chaincode-go

go 1.22.0
go 1.23.0

require (
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion token-sdk/auditor/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/token-sdk/auditor

go 1.22.0
go 1.23.0

replace github.com/ugorji/go v1.1.4 => github.com/ugorji/go/codec v1.2.9

Expand Down
2 changes: 1 addition & 1 deletion token-sdk/e2e/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/token-sdk/e2e

go 1.22.0
go 1.23.0

require (
github.com/deepmap/oapi-codegen v1.16.3
Expand Down
2 changes: 1 addition & 1 deletion token-sdk/go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go 1.22.0
go 1.23.0

use (
./auditor
Expand Down
2 changes: 1 addition & 1 deletion token-sdk/issuer/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/token-sdk/issuer

go 1.22.0
go 1.23.0

replace github.com/ugorji/go v1.1.4 => github.com/ugorji/go/codec v1.2.9

Expand Down
2 changes: 1 addition & 1 deletion token-sdk/owner/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/token-sdk/owner

go 1.22.0
go 1.23.0

replace github.com/ugorji/go v1.1.4 => github.com/ugorji/go/codec v1.2.9

Expand Down
2 changes: 1 addition & 1 deletion token-utxo/chaincode-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hyperledger/fabric-samples/token-utxo/chaincode-go

go 1.22.0
go 1.23.0

require github.com/hyperledger/fabric-contract-api-go/v2 v2.2.0

Expand Down

0 comments on commit df56ae2

Please sign in to comment.