Skip to content

Commit

Permalink
Bump golang to 1.22.8
Browse files Browse the repository at this point in the history
  • Loading branch information
maru-ava committed Oct 1, 2024
1 parent 7fd21ca commit ae60788
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

To start developing on AvalancheGo, you'll need a few things installed.

- Golang version >= 1.21.12
- Golang version >= 1.22.8
- gcc
- g++

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The minimum recommended hardware specification for nodes connected to Mainnet is

If you plan to build AvalancheGo from source, you will also need the following software:

- [Go](https://golang.org/doc/install) version >= 1.21.12
- [Go](https://golang.org/doc/install) version >= 1.22.8
- [gcc](https://gcc.gnu.org/)
- g++

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module github.com/ava-labs/avalanchego
// CONTRIBUTING.md
// README.md
// go.mod (here)
go 1.21.12
go 1.22.8

require (
github.com/DataDog/zstd v1.5.2
Expand Down
3 changes: 2 additions & 1 deletion snow/engine/snowman/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"context"
"errors"
"fmt"
"slices"
"testing"
"time"

Expand Down Expand Up @@ -3081,7 +3082,7 @@ func TestShouldIssueBlock(t *testing.T) {
chain4Through6 = snowmantest.BuildDescendants(chain0Through3[0], 3)
chain7Through10 = snowmantest.BuildDescendants(snowmantest.Genesis, 4)
chain11Through11 = snowmantest.BuildDescendants(chain7Through10[1], 1)
blocks = utils.Join(chain0Through3, chain4Through6, chain7Through10, chain11Through11)
blocks = slices.Concat(chain0Through3, chain4Through6, chain7Through10, chain11Through11)
)

require.NoError(t, blocks[0].Accept(context.Background()))
Expand Down
19 changes: 0 additions & 19 deletions utils/slice.go

This file was deleted.

9 changes: 5 additions & 4 deletions wallet/chain/p/builder/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package builder

import (
"math/rand"
"slices"
"testing"
"time"

Expand Down Expand Up @@ -58,16 +59,16 @@ func TestSplitByLocktime(t *testing.T) {
require = require.New(t)

unlockedTime uint64 = 100
expectedUnlocked = utils.Join(
expectedUnlocked = slices.Concat(
generateUTXOs(random, ids.GenerateTestID(), 0),
generateUTXOs(random, ids.GenerateTestID(), unlockedTime-1),
generateUTXOs(random, ids.GenerateTestID(), unlockedTime),
)
expectedLocked = utils.Join(
expectedLocked = slices.Concat(
generateUTXOs(random, ids.GenerateTestID(), unlockedTime+100),
generateUTXOs(random, ids.GenerateTestID(), unlockedTime+1),
)
utxos = utils.Join(
utxos = slices.Concat(
expectedUnlocked,
expectedLocked,
)
Expand All @@ -92,7 +93,7 @@ func TestByAssetID(t *testing.T) {
assetID = ids.GenerateTestID()
expectedRequested = generateUTXOs(random, assetID, random.Uint64())
expectedOther = generateUTXOs(random, ids.GenerateTestID(), random.Uint64())
utxos = utils.Join(
utxos = slices.Concat(
expectedRequested,
expectedOther,
)
Expand Down
3 changes: 2 additions & 1 deletion wallet/chain/p/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package p

import (
"slices"
"testing"
"time"

Expand Down Expand Up @@ -150,7 +151,7 @@ var (
memo: []byte("memo"),
},
}
testEnvironment = utils.Join(
testEnvironment = slices.Concat(
testEnvironmentPreEtna,
testEnvironmentPostEtna,
)
Expand Down

0 comments on commit ae60788

Please sign in to comment.