Skip to content

Commit d09cf77

Browse files
author
andrii.pavliv
committed
feat: updated go libs. Fixed snyk and versioning issues
1 parent 41f20c3 commit d09cf77

20 files changed

Lines changed: 423 additions & 528 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
name: "wallet-sdk ci"
88

99
env:
10-
GO_VERSION: '1.23.4'
10+
GO_VERSION: '1.25.1'
1111

1212
on:
1313
push:
@@ -97,7 +97,7 @@ jobs:
9797
- name: Build docker images for test server
9898
run: |
9999
docker build -f ./images/mocks/loginconsent/Dockerfile --no-cache -t wallet-sdk/mock-login-consent:latest \
100-
--build-arg GO_VER=1.23 \
100+
--build-arg GO_VER=1.25 \
101101
--build-arg ALPINE_VER=3.20 .
102102
- name: Save docker image as tar
103103
run: |
@@ -120,7 +120,7 @@ jobs:
120120
- name: Build docker images for test server
121121
run: |
122122
docker build -f ./images/mocks/webhook/Dockerfile --no-cache -t wallet-sdk/sample-webhook:latest \
123-
--build-arg GO_VER=1.23 \
123+
--build-arg GO_VER=1.25 \
124124
--build-arg ALPINE_VER=3.20 .
125125
- name: Save docker image as tar
126126
run: |
@@ -143,7 +143,7 @@ jobs:
143143
- name: Build docker images for test server
144144
run: |
145145
docker build -f ./images/mocks/trustregistry/Dockerfile --no-cache -t wallet-sdk/mock-trust-registry:latest \
146-
--build-arg GO_VER=1.23 \
146+
--build-arg GO_VER=1.25 \
147147
--build-arg ALPINE_VER=3.20 .
148148
- name: Save docker image as tar
149149
run: |
@@ -166,7 +166,7 @@ jobs:
166166
- name: Build docker images for test server
167167
run: |
168168
docker build -f ./images/mocks/attestation/Dockerfile --no-cache -t wallet-sdk/mock-attestation:latest \
169-
--build-arg GO_VER=1.23 \
169+
--build-arg GO_VER=1.25 \
170170
--build-arg ALPINE_VER=3.20 .
171171
- name: Save docker image as tar
172172
run: |

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
name: "wallet-sdk release"
88

99
env:
10-
GO_VERSION: '1.23'
10+
GO_VERSION: '1.25'
1111

1212
on:
1313
push:
@@ -32,7 +32,7 @@ jobs:
3232
cd ..
3333
git clone https://go.googlesource.com/go goroot
3434
cd goroot
35-
git checkout go1.23.4
35+
git checkout go1.25.1
3636
cp ../wallet-sdk/cmd/wallet-sdk-gomobile/gopatches/* ./
3737
git revert 3560cf0afb3c29300a6c88ccd98256949ca7a6f6
3838
cd src && ./make.bash
@@ -98,7 +98,7 @@ jobs:
9898
cd ..
9999
git clone https://go.googlesource.com/go goroot
100100
cd goroot
101-
git checkout go1.23.4
101+
git checkout go1.25.1
102102
cp ../wallet-sdk/cmd/wallet-sdk-gomobile/gopatches/* ./
103103
git revert 3560cf0afb3c29300a6c88ccd98256949ca7a6f6
104104
cd src && ./make.bash

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ else
1212
PATH:=$(PATH);$(subst /,\\,$(GOBIN_PATH))
1313
endif
1414

15-
ALPINE_VER ?= 3.20
16-
GO_ALPINE_VER ?= 3.20
17-
GO_VER ?= 1.23
15+
ALPINE_VER ?= 3.22
16+
GO_ALPINE_VER ?= 3.22
17+
GO_VER ?= 1.25
1818

1919
NEW_VERSION ?= $(shell git describe --tags --always `git rev-list --tags --max-count=1`)-SNAPSHOT-$(shell git rev-parse --short=7 HEAD)
2020
GIT_REV ?= $(shell git rev-parse HEAD)

cmd/wallet-sdk-gomobile/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This package contains the `gomobile`-compatible version of the SDK. It acts as a
44

55
## Prerequisites
66

7-
* [Go 1.23](https://go.dev/doc/install) or newer
7+
* [Go 1.25](https://go.dev/doc/install) or newer
88
* The gomobile tools:
99
```
1010
go install golang.org/x/mobile/cmd/gomobile@latest

cmd/wallet-sdk-gomobile/go.mod

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55

66
module github.com/trustbloc/wallet-sdk/cmd/wallet-sdk-gomobile
77

8-
go 1.23.0
9-
10-
toolchain go1.23.6
8+
go 1.25.1
119

1210
require (
1311
github.com/go-jose/go-jose/v3 v3.0.4
1412
github.com/google/uuid v1.6.0
1513
github.com/gowebpki/jcs v1.0.1
1614
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
17-
github.com/stretchr/testify v1.10.0
15+
github.com/stretchr/testify v1.11.1
1816
github.com/trustbloc/did-go v1.3.4
1917
github.com/trustbloc/kms-go v1.2.2
2018
github.com/trustbloc/vc-go v1.3.3
@@ -23,68 +21,65 @@ require (
2321

2422
require (
2523
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
26-
github.com/theory/jsonpath v0.3.0 // indirect
24+
github.com/theory/jsonpath v0.10.1 // indirect
25+
lukechampine.com/blake3 v1.4.1 // indirect
2726
)
2827

2928
require (
3029
github.com/IBM/mathlib v0.0.3-0.20231011094432-44ee0eb539da // indirect
3130
github.com/PaesslerAG/gval v1.2.4 // indirect
3231
github.com/PaesslerAG/jsonpath v0.1.2-0.20240726212847-3a740cf7976f // indirect
33-
github.com/VictoriaMetrics/fastcache v1.12.2 // indirect
34-
github.com/bits-and-blooms/bitset v1.17.0 // indirect
35-
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
32+
github.com/VictoriaMetrics/fastcache v1.13.0 // indirect
33+
github.com/bits-and-blooms/bitset v1.24.0 // indirect
34+
github.com/btcsuite/btcd/btcec/v2 v2.3.5 // indirect
3635
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect
3736
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
3837
github.com/cespare/xxhash/v2 v2.3.0 // indirect
39-
github.com/consensys/bavard v0.1.22 // indirect
40-
github.com/consensys/gnark-crypto v0.14.0 // indirect
38+
github.com/consensys/gnark-crypto v0.19.0 // indirect
4139
github.com/davecgh/go-spew v1.1.1 // indirect
42-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
43-
github.com/evanphx/json-patch v5.9.0+incompatible // indirect
44-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
40+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
41+
github.com/evanphx/json-patch v5.9.11+incompatible // indirect
42+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
4543
github.com/golang/protobuf v1.5.4 // indirect
46-
github.com/golang/snappy v0.0.4 // indirect
44+
github.com/golang/snappy v1.0.0 // indirect
4745
github.com/google/tink/go v1.7.0 // indirect
4846
github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 // indirect
4947
github.com/kawamuray/jsonpath v0.0.0-20210127151053-2ab0d7f0a6ad // indirect
5048
github.com/kilic/bls12-381 v0.1.1-0.20210503002446-7b7597926c69 // indirect
51-
github.com/klauspost/cpuid/v2 v2.2.3 // indirect
52-
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect
49+
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
5350
github.com/minio/sha256-simd v1.0.1 // indirect
5451
github.com/mitchellh/mapstructure v1.5.0 // indirect
55-
github.com/mmcloughlin/addchain v0.4.0 // indirect
5652
github.com/mr-tron/base58 v1.2.0 // indirect
5753
github.com/multiformats/go-base32 v0.1.0 // indirect
5854
github.com/multiformats/go-base36 v0.2.0 // indirect
5955
github.com/multiformats/go-multibase v0.2.0 // indirect
60-
github.com/multiformats/go-multihash v0.0.14 // indirect; (breaking changes)
61-
github.com/multiformats/go-varint v0.0.7 // indirect
56+
github.com/multiformats/go-multihash v0.2.3 // indirect; (breaking changes)
57+
github.com/multiformats/go-varint v0.1.0 // indirect
6258
github.com/pkg/errors v0.9.1 // indirect
6359
github.com/pmezard/go-difflib v1.0.0 // indirect
6460
github.com/pquerna/cachecontrol v0.2.0 // indirect
65-
github.com/samber/lo v1.47.0 // indirect
61+
github.com/samber/lo v1.51.0 // indirect
6662
github.com/shopspring/decimal v1.4.0 // indirect
6763
github.com/spaolacci/murmur3 v1.1.0 // indirect
6864
github.com/teserakt-io/golang-ed25519 v0.0.0-20210104091850-3888c087a4c8 // indirect
6965
github.com/tidwall/gjson v1.18.0 // indirect
70-
github.com/tidwall/match v1.1.1 // indirect
66+
github.com/tidwall/match v1.2.0 // indirect
7167
github.com/tidwall/pretty v1.2.1 // indirect
72-
github.com/tidwall/sjson v1.1.7 // indirect; (breaking changes)
68+
github.com/tidwall/sjson v1.2.5 // indirect; (breaking changes)
7369
github.com/trustbloc/bbs-signature-go v1.0.2 // indirect
7470
github.com/trustbloc/sidetree-go v1.1.1 // indirect
7571
github.com/veraison/go-cose v1.3.0 // indirect
7672
github.com/x448/float16 v0.8.4 // indirect
7773
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
7874
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
7975
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
80-
golang.org/x/crypto v0.37.0 // indirect
81-
golang.org/x/exp v0.0.0-20241204233417-43b7b7cde48d // indirect
82-
golang.org/x/oauth2 v0.24.0 // indirect
83-
golang.org/x/sys v0.32.0 // indirect
84-
golang.org/x/text v0.24.0 // indirect
85-
google.golang.org/protobuf v1.35.2 // indirect
76+
golang.org/x/crypto v0.42.0 // indirect
77+
golang.org/x/exp v0.0.0-20251002181428-27f1f14c8bb9 // indirect
78+
golang.org/x/oauth2 v0.31.0 // indirect
79+
golang.org/x/sys v0.36.0 // indirect
80+
golang.org/x/text v0.29.0 // indirect
81+
google.golang.org/protobuf v1.36.10 // indirect
8682
gopkg.in/yaml.v3 v3.0.1 // indirect
87-
rsc.io/tmplfunc v0.0.3 // indirect
8883
)
8984

9085
replace github.com/trustbloc/wallet-sdk => ../../

0 commit comments

Comments
 (0)