Skip to content

Commit efe2646

Browse files
committed
Bump Oasis Core to 25.2
1 parent a17c9ec commit efe2646

11 files changed

Lines changed: 51 additions & 52 deletions

File tree

.github/workflows/ci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set up Go
4242
uses: actions/setup-go@v5
4343
with:
44-
go-version: "1.23.x"
44+
go-version: "1.24.x"
4545
cache: false
4646
- name: Install gitlint
4747
run: |
@@ -61,9 +61,9 @@ jobs:
6161
# NOTE: Using the official golangci-lint GitHub Action should give
6262
# better performance than manually installing golangci-lint and running
6363
# 'make lint-go'.
64-
uses: golangci/golangci-lint-action@v6.1.0
64+
uses: golangci/golangci-lint-action@v6.5.0
6565
with:
66-
version: v1.61
66+
version: v1.64
6767
# Always run this step so that all linting errors can be seen at once.
6868
if: always()
6969
- name: Ensure a clean code checkout

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Go
3030
uses: actions/setup-go@v5
3131
with:
32-
go-version: "1.23.x"
32+
go-version: "1.24.x"
3333
- name: Cache Go dependencies
3434
uses: actions/cache@v4
3535
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: "1.23.x"
25+
go-version: "1.24.x"
2626
- name: Install GoReleaser
2727
uses: goreleaser/goreleaser-action@v5
2828
with:

.golangci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ linters:
1717
- dupl
1818
- errcheck
1919
- exhaustive
20-
- exportloopref
2120
- goconst
2221
- gocritic
2322
- gocyclo
@@ -56,6 +55,9 @@ linters-settings:
5655
- $all
5756
allow:
5857
- $gostd
58+
- golang.org/x/sys/unix
59+
- golang.org/x/crypto/sha3
60+
- golang.org/x/crypto/argon2
5961
- github.com/oasisprotocol
6062
- github.com/btcsuite/btcd
6163
- github.com/adrg/xdg
@@ -82,6 +84,3 @@ linters-settings:
8284
# Switch statements are to be considered exhaustive if a 'default' case is
8385
# present, even if all enum members aren't listed in the switch.
8486
default-signifies-exhaustive: true
85-
govet:
86-
# Enabled checking for shadowed variables.
87-
check-shadowing: true

cmd/account/show/delegations.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ const amountFieldName = "Amount:"
2424

2525
// lenLongestString returns the length of the longest string passed to it.
2626
func lenLongestString(strs ...string) int {
27-
max := 0
27+
maxLen := 0
2828
for _, s := range strs {
29-
if len(s) > max {
30-
max = len(s)
29+
if len(s) > maxLen {
30+
maxLen = len(s)
3131
}
3232
}
33-
return max
33+
return maxLen
3434
}
3535

3636
// delegationDescription is a description of a (debonding) delegation.

config/addressbook.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,25 @@ func (ab *AddressBook) Remove(name string) error {
4949
}
5050

5151
// Rename renames an existing address book entry.
52-
func (ab *AddressBook) Rename(old, new string) error {
53-
cfg, exists := ab.All[old]
52+
func (ab *AddressBook) Rename(oldName, newName string) error {
53+
cfg, exists := ab.All[oldName]
5454
if !exists {
55-
return fmt.Errorf("address named '%s' does not exist in the address book", old)
55+
return fmt.Errorf("address named '%s' does not exist in the address book", oldName)
5656
}
5757

58-
if _, exists = ab.All[new]; exists {
59-
return fmt.Errorf("address named '%s' already exists in the address book", new)
58+
if _, exists = ab.All[newName]; exists {
59+
return fmt.Errorf("address named '%s' already exists in the address book", newName)
6060
}
6161

62-
if err := config.ValidateIdentifier(old); err != nil {
63-
return fmt.Errorf("malformed old address name '%s': %w", old, err)
62+
if err := config.ValidateIdentifier(oldName); err != nil {
63+
return fmt.Errorf("malformed old address name '%s': %w", oldName, err)
6464
}
65-
if err := config.ValidateIdentifier(new); err != nil {
66-
return fmt.Errorf("malformed new address name '%s': %w", new, err)
65+
if err := config.ValidateIdentifier(newName); err != nil {
66+
return fmt.Errorf("malformed new address name '%s': %w", newName, err)
6767
}
6868

69-
ab.All[new] = cfg
70-
delete(ab.All, old)
69+
ab.All[newName] = cfg
70+
delete(ab.All, oldName)
7171

7272
return nil
7373
}

config/wallet.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -156,38 +156,38 @@ func (w *Wallet) Remove(name string) error {
156156
}
157157

158158
// Rename renames an existing account.
159-
func (w *Wallet) Rename(old, new string) error {
160-
cfg, exists := w.All[old]
159+
func (w *Wallet) Rename(oldName, newName string) error {
160+
cfg, exists := w.All[oldName]
161161
if !exists {
162-
return fmt.Errorf("account '%s' does not exist in the wallet", old)
162+
return fmt.Errorf("account '%s' does not exist in the wallet", oldName)
163163
}
164164

165-
if _, exists = w.All[new]; exists {
166-
return fmt.Errorf("account '%s' already exists in the wallet", new)
165+
if _, exists = w.All[newName]; exists {
166+
return fmt.Errorf("account '%s' already exists in the wallet", newName)
167167
}
168168

169-
if err := config.ValidateIdentifier(old); err != nil {
170-
return fmt.Errorf("malformed old account name '%s': %w", old, err)
169+
if err := config.ValidateIdentifier(oldName); err != nil {
170+
return fmt.Errorf("malformed old account name '%s': %w", oldName, err)
171171
}
172-
if err := config.ValidateIdentifier(new); err != nil {
173-
return fmt.Errorf("malformed new account name '%s': %w", new, err)
172+
if err := config.ValidateIdentifier(newName); err != nil {
173+
return fmt.Errorf("malformed new account name '%s': %w", newName, err)
174174
}
175175

176176
af, err := wallet.Load(cfg.Kind)
177177
if err != nil {
178178
return err
179179
}
180180

181-
if err := af.Rename(old, new, cfg.Config); err != nil {
181+
if err := af.Rename(oldName, newName, cfg.Config); err != nil {
182182
return err
183183
}
184184

185-
w.All[new] = cfg
186-
delete(w.All, old)
185+
w.All[newName] = cfg
186+
delete(w.All, oldName)
187187

188188
// Update default if set to this wallet.
189-
if w.Default == old {
190-
w.Default = new
189+
if w.Default == oldName {
190+
w.Default = newName
191191
}
192192

193193
return nil

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/oasisprotocol/cli
22

3-
go 1.23.2
3+
go 1.24.0
44

5-
toolchain go1.23.5
5+
toolchain go1.24.2
66

77
// v1.5.0 has broken uint parsing, use a commit with the fix until the
88
// the maintainers merge the PR: https://github.com/spf13/cast/pull/144
@@ -23,8 +23,8 @@ require (
2323
github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a
2424
github.com/oasisprotocol/deoxysii v0.0.0-20220228165953-2091330c22b7
2525
github.com/oasisprotocol/metadata-registry-tools v0.0.0-20220406100644-7e9a2b991920
26-
github.com/oasisprotocol/oasis-core/go v0.2500.0
27-
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.13.2
26+
github.com/oasisprotocol/oasis-core/go v0.2502.0
27+
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.14.0
2828
github.com/olekukonko/tablewriter v0.0.5
2929
github.com/opencontainers/image-spec v1.1.0
3030
github.com/spf13/cobra v1.9.1
@@ -159,7 +159,7 @@ require (
159159
go.uber.org/multierr v1.11.0 // indirect
160160
go.uber.org/zap v1.27.0 // indirect
161161
golang.org/x/exp v0.0.0-20250128182459-e0ece0dbea4c // indirect
162-
golang.org/x/net v0.34.0 // indirect
162+
golang.org/x/net v0.38.0 // indirect
163163
golang.org/x/sync v0.12.0 // indirect
164164
golang.org/x/term v0.30.0 // indirect
165165
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ github.com/oasisprotocol/deoxysii v0.0.0-20220228165953-2091330c22b7 h1:1102pQc2
427427
github.com/oasisprotocol/deoxysii v0.0.0-20220228165953-2091330c22b7/go.mod h1:UqoUn6cHESlliMhOnKLWr+CBH+e3bazUPvFj1XZwAjs=
428428
github.com/oasisprotocol/metadata-registry-tools v0.0.0-20220406100644-7e9a2b991920 h1:rugJRYKamNl6WGBaU+b0wLQFkYcsnBr0ycX5QmB+AYU=
429429
github.com/oasisprotocol/metadata-registry-tools v0.0.0-20220406100644-7e9a2b991920/go.mod h1:MKr/giwakLyCCjSWh0W9Pbaf7rDD1K96Wr57OhNoUK0=
430-
github.com/oasisprotocol/oasis-core/go v0.2500.0 h1:VK3bWrw+Z3Ptv1YcTHOqWCS8Io888imnYgd9aohFg4g=
431-
github.com/oasisprotocol/oasis-core/go v0.2500.0/go.mod h1:VGnmXqzTnSjM5Ik+nMyposdUQip9UsT0ebzMA3JfcjE=
432-
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.13.2 h1:ZjLU1nKU3R1Hl231DIWwwbK4Zs8vLixsDUqcdjKxA2A=
433-
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.13.2/go.mod h1:cSeE0PjcOJiXFQKxUAvO/9B0PmraZQAlX6WPZN/UVoI=
430+
github.com/oasisprotocol/oasis-core/go v0.2502.0 h1:B/qr+3HjCF8gN0MmY9Cw9hJ8Em/Lo5Ah8bIi9pgqgDY=
431+
github.com/oasisprotocol/oasis-core/go v0.2502.0/go.mod h1:0wO1wYzDCNToNemyt/wF+1BjcrSBRyw6MJrWr7LvrJs=
432+
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.14.0 h1:QFH193NC5AVgg024xwmOp9UXAygkL4I/HW5lyx2vlhs=
433+
github.com/oasisprotocol/oasis-sdk/client-sdk/go v0.14.0/go.mod h1:ANKdBwpRAMKDePYb6fg6Sk+qhKpTQmrnl8PsEKrHt9M=
434434
github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
435435
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
436436
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
@@ -729,8 +729,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
729729
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
730730
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
731731
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
732-
golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
733-
golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
732+
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
733+
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
734734
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
735735
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
736736
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=

wallet/file/file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ func (af *fileAccountFactory) Remove(name string, _ map[string]interface{}) erro
396396
return os.Remove(getAccountFilename(name))
397397
}
398398

399-
func (af *fileAccountFactory) Rename(old, new string, _ map[string]interface{}) error {
400-
return os.Rename(getAccountFilename(old), getAccountFilename(new))
399+
func (af *fileAccountFactory) Rename(oldName, newName string, _ map[string]interface{}) error {
400+
return os.Rename(getAccountFilename(oldName), getAccountFilename(newName))
401401
}
402402

403403
func (af *fileAccountFactory) Import(name string, passphrase string, rawCfg map[string]interface{}, src *wallet.ImportSource) (wallet.Account, error) {

0 commit comments

Comments
 (0)