Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update cosmos-sdk to 0.50.10 #155

Merged
merged 5 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.23"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Codebase Verification

Update Go version to the specific stable release and correct the cosmos-sdk version.

  • The workflow file currently uses go-version: "1.23", but the latest stable version is go1.23.1 as per the PR.
  • The cosmos-sdk version in go.mod is v0.50.10, which does not match the PR's specified 1.50.10. This appears to be a typo and should be corrected to ensure consistency.
Analysis chain

Verify Go version and consider using a more specific version.

The Go version has been updated from 1.21 to 1.23, which is in line with the PR title. However, there are a couple of points to consider:

  1. The PR title mentions Go 1.23.1, but the workflow specifies 1.23. It's generally better to use the full version number for consistency and to ensure you're using a specific stable release.
  2. As of September 2024, Go 1.23 is not an official release. The latest stable version is typically in the format 1.x.y (e.g., 1.21.0, 1.22.0, etc.).

Consider updating the Go version to match the latest stable release or the specific version mentioned in the PR title. For example:

- go-version: "1.23"
+ go-version: "1.23.1"

To verify the latest stable Go version, you can run the following script:

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Fetch the latest stable Go version
latest_go_version=$(curl -sSL https://go.dev/VERSION?m=text)
echo "Latest stable Go version: $latest_go_version"

# Check if the version in the workflow file matches the latest stable version
if grep -q "go-version: \"$latest_go_version\"" .github/workflows/build.yml; then
  echo "Workflow file is using the latest stable Go version."
else
  echo "Workflow file is not using the latest stable Go version."
  echo "Current version in workflow:"
  grep "go-version:" .github/workflows/build.yml
fi

Length of output: 3839


Script:

#!/bin/bash
# Fetch the latest stable Go version
latest_go_version=$(curl -sSL https://go.dev/VERSION?m=text)
echo "Latest stable Go version: $latest_go_version"

# Check if the version in the workflow file matches the latest stable version
if grep -q "go-version: \"$latest_go_version\"" .github/workflows/build.yml; then
  echo "Workflow file is using the latest stable Go version."
else
  echo "Workflow file is not using the latest stable Go version."
  echo "Current version in workflow:"
  grep "go-version:" .github/workflows/build.yml
fi

Length of output: 587


Script:

#!/bin/bash
# Fetch the latest stable Go version and extract only the version string
latest_go_version=$(curl -sSL https://go.dev/VERSION?m=text | head -n 1 | tr -d '\n')
echo "Latest stable Go version: $latest_go_version"

# Check if the version in the workflow file matches the latest stable version
if grep -q "go-version: \"$latest_go_version\"" .github/workflows/build.yml; then
  echo "Workflow file is using the latest stable Go version."
else
  echo "Workflow file is not using the latest stable Go version."
  echo "Current version in workflow:"
  grep "go-version:" .github/workflows/build.yml
fi

Length of output: 508

check-latest: true
- uses: technote-space/[email protected]
id: git_diff
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.23"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Codebase Verification

Go version update requires alignment across the repository

The .github/workflows/lint.yml has been updated to Go version "1.23", aligning with the PR title. However:

  • go.mod specifies Go version "1.23.1"
  • Dockerfiles are using Go version "1.22"

Please update all Go version specifications to "1.23.1" to maintain consistency throughout the repository.

Analysis chain

Approved: Go version update, but note the discrepancy with PR title

The update to Go version "1.23" is in line with Go's typical release pattern for major versions. However, there's a slight discrepancy with the PR title, which mentions version 1.23.1.

To ensure consistency across the repository, please run the following script to check for any other Go version specifications:

Please review the output to ensure all Go version specifications are consistent with this update.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for Go version specifications across the repository

# Search for Go version specifications in various file types
echo "Searching for Go version specifications:"
rg --type yaml --type go --type mod '(?i)go-version|go [0-9]+\.[0-9]+' -g '!vendor'

# Search for Dockerfile GO version specifications
echo "Searching for Go version in Dockerfiles:"
rg --type dockerfile '(?i)FROM golang:[0-9]+\.[0-9]+' -g '!vendor'

Length of output: 399


Script:

#!/bin/bash
# Description: Check for Go version specifications across the repository with corrected file types

# Search for Go version specifications in YAML, Go, and go.mod files
echo "Searching for Go version specifications:"
rg --type yaml --type go --type 'go.mod' '(?i)go-version|go [0-9]+\.[0-9]+' -g '!vendor'

# Search for Go version in Dockerfiles
echo "Searching for Go version in Dockerfiles:"
rg --type dockerfile '(?i)FROM golang:[0-9]+\.[0-9]+' -g '!vendor'

Length of output: 405


Script:

#!/bin/bash
# Description: Check for Go version specifications across the repository with corrected file type handling

# Search for Go version specifications in YAML, Go, and go.mod files
echo "Searching for Go version specifications:"
rg '(?i)go-version|go [0-9]+\.[0-9]+' -g "*.yaml" -g "*.yml" -g "*.go" -g "go.mod" -g "!vendor"

# Search for Go version in Dockerfiles
echo "Searching for Go version in Dockerfiles:"
rg '(?i)FROM golang:[0-9]+\.[0-9]+' -g "Dockerfile*" -g "!vendor"

Length of output: 439

check-latest: true
- uses: technote-space/[email protected]
id: git_diff
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rosetta-cli-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21.1'
go-version: '^1.23'
- name: Run make test-rosetta-ci
run:
COSMOS_SDK_VERSION=v0.50.3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.23"
check-latest: true
cache: true
cache-dependency-path: go.sum
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

## [v0.50.9](https://github.com/cosmos/rosetta/releases/tag/v0.50.10) 2024-09-23

### Improvements

* [155](https://github.com/cosmos/rosetta/pull/155) Update Go to 1.23.1 and cosmos-sdk to v0.50.10

## [v0.50.9](https://github.com/cosmos/rosetta/releases/tag/v0.50.9) 2024-08-07

### Improvements
Expand Down
64 changes: 33 additions & 31 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
module github.com/cosmos/rosetta

go 1.22.2
go 1.23.1

require (
cosmossdk.io/api v0.7.5
cosmossdk.io/log v1.3.1
cosmossdk.io/log v1.4.1
cosmossdk.io/math v1.3.0
cosmossdk.io/x/tx v0.13.4
cosmossdk.io/x/tx v0.13.5
github.com/coinbase/rosetta-sdk-go/types v1.0.0
github.com/cometbft/cometbft v0.38.10
github.com/cosmos/cosmos-sdk v0.50.9
github.com/cosmos/gogoproto v1.5.0
github.com/cometbft/cometbft v0.38.12
github.com/cosmos/cosmos-sdk v0.50.10
github.com/cosmos/gogoproto v1.7.0
github.com/cosmos/rosetta-sdk-go v0.10.0
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0
github.com/goware/urlx v0.3.2
github.com/spf13/cobra v1.8.0
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.9.0
google.golang.org/grpc v1.64.1
Expand All @@ -26,7 +26,7 @@ require (
cosmossdk.io/core v0.11.1 // indirect
cosmossdk.io/depinject v1.0.0 // indirect
cosmossdk.io/errors v1.0.1 // indirect
cosmossdk.io/store v1.1.0 // indirect
cosmossdk.io/store v1.1.1 // indirect
filippo.io/edwards25519 v1.0.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
Expand All @@ -36,23 +36,24 @@ require (
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cockroachdb/errors v1.11.1 // indirect
github.com/cockroachdb/errors v1.11.3 // indirect
github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/pebble v1.1.0 // indirect
github.com/cockroachdb/pebble v1.1.1 // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
github.com/cometbft/cometbft-db v0.9.1 // indirect
github.com/cometbft/cometbft-db v0.11.0 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect
github.com/cosmos/cosmos-db v1.0.2 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/gogogateway v1.2.0 // indirect
github.com/cosmos/iavl v1.1.2 // indirect
github.com/cosmos/ics23/go v0.10.0 // indirect
github.com/cosmos/iavl v1.2.0 // indirect
github.com/cosmos/ics23/go v0.11.0 // indirect
github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect
github.com/danieljoos/wincred v1.1.2 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
Expand All @@ -64,7 +65,7 @@ require (
github.com/dvsekhvalnov/jose2go v1.6.0 // indirect
github.com/emicklei/dot v1.6.1 // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/felixge/httpsnoop v1.0.2 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/getsentry/sentry-go v0.27.0 // indirect
github.com/go-kit/kit v0.12.0 // indirect
Expand All @@ -80,7 +81,7 @@ require (
github.com/google/go-cmp v0.6.0 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
Expand All @@ -97,7 +98,7 @@ require (
github.com/improbable-eng/grpc-web v0.15.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jmhodges/levigo v1.0.0 // indirect
github.com/klauspost/compress v1.17.7 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/linxGnu/grocksdb v1.8.14 // indirect
Expand All @@ -107,42 +108,43 @@ require (
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mtibben/percent v0.2.1 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_golang v1.20.1 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.52.2 // indirect
github.com/prometheus/procfs v0.13.0 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/rs/cors v1.8.3 // indirect
github.com/rs/zerolog v1.32.0 // indirect
github.com/rs/cors v1.11.1 // indirect
github.com/rs/zerolog v1.33.0 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/viper v1.18.2 // indirect
github.com/spf13/viper v1.19.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
github.com/tendermint/go-amino v0.16.0 // indirect
github.com/tidwall/btree v1.7.0 // indirect
github.com/zondax/hid v0.9.2 // indirect
github.com/zondax/ledger-go v0.14.3 // indirect
go.etcd.io/bbolt v1.3.8 // indirect
go.etcd.io/bbolt v1.3.10 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/term v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/term v0.23.0 // indirect
golang.org/x/text v0.17.0 // indirect
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5 // indirect
Expand Down
Loading
Loading