Skip to content

Commit

Permalink
chore(deps): bump github.com/golangci/golangci-lint from 1.58.0 to 1.…
Browse files Browse the repository at this point in the history
…60.3 (#500)

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.58.0 to 1.60.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/golangci/golangci-lint/releases">github.com/golangci/golangci-lint's releases</a>.</em></p>
<blockquote>
<h2>v1.60.3</h2>
<p><code>golangci-lint</code> is a free and open-source project built by volunteers.</p>
<p>If you value it, consider supporting us, the <a href="https://opencollective.com/golangci-lint">maintainers</a> and <a href="https://golangci-lint.run/product/thanks/">linter authors</a>.</p>
<p>We appreciate it! ❤️</p>
<p>For key updates, see the <a href="https://golangci-lint.run/product/changelog/%5B#1603%5D(https://redirect.github.com/golangci/golangci-lint/issues/1603)">changelog</a>.</p>
<h2>Changelog</h2>
<ul>
<li>c2e095c022a97360f7fff5d49fbc11f273be929a build(deps): bump github.com/securego/gosec/v2 from 81cda2f91fbe to ab3f6c1c83a0 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4943">#4943</a>)</li>
<li>f0c190436343e51e6b4dc98a368cf7bae0e5f33a feat: check that Go version use to build is greater or equals to the Go version of the project (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4938">#4938</a>)</li>
</ul>
<h2>v1.60.2</h2>
<p><code>golangci-lint</code> is a free and open-source project built by volunteers.</p>
<p>If you value it, consider supporting us, the <a href="https://opencollective.com/golangci-lint">maintainers</a> and <a href="https://golangci-lint.run/product/thanks/">linter authors</a>.</p>
<p>We appreciate it! ❤️</p>
<p>For key updates, see the <a href="https://golangci-lint.run/product/changelog/%5B#1602%5D(https://redirect.github.com/golangci/golangci-lint/issues/1602)">changelog</a>.</p>
<h2>Changelog</h2>
<ul>
<li>f338f3ef33f0f7b641100aa1fd759549cc959a8b build(deps): bump github.com/securego/gosec/v2 from 5f0084eb01a9 to 81cda2f91fbe (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4927">#4927</a>)</li>
<li>132d81cb5a37a48b190b3fbb58eeb7fcc754f71a build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.8.3 to 2.9.0 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4921">#4921</a>)</li>
<li>15529a9d74d8b6904d7da121c6f8c96e502c070c build(deps): bump honnef.co/go/tools from 0.5.0 to 0.5.1 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4911">#4911</a>)</li>
<li>e24ef74f8f63de3d1a31834c2754f31b32e571c3 build(deps): bump mvdan.cc/gofumpt from 0.6.0 to 0.7.0 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4922">#4922</a>)</li>
<li>87dd8fe7552a8c8374ebde29db3bda8b28055962 exportloopref: deprecation (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4916">#4916</a>)</li>
<li>ca0b09e5e3891abef239b7c14459c6fba90e796e gosec: add G602 analyzer (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4906">#4906</a>)</li>
<li>adbdfdb288e939a175182b7a12b7555215ce98b2 staticcheck: propagate Go version (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4907">#4907</a>)</li>
</ul>
<h2>v1.60.1</h2>
<p><code>golangci-lint</code> is a free and open-source project built by volunteers.</p>
<p>If you value it, consider supporting us, the <a href="https://opencollective.com/golangci-lint">maintainers</a> and <a href="https://golangci-lint.run/product/thanks/">linter authors</a>.</p>
<p>We appreciate it! ❤️</p>
<p>For key updates, see the <a href="https://golangci-lint.run/product/changelog/%5B#1601%5D(https://redirect.github.com/golangci/golangci-lint/issues/1601)">changelog</a>.</p>
<h2>Changelog</h2>
<ul>
<li>1147824c go1.23 support (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4836">#4836</a>)</li>
<li>9eeb891c build(deps): bump golang.org/x/tools from 0.23.0 to 0.24.0 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4898">#4898</a>)</li>
<li>73bbf822 build(deps): bump github.com/polyfloyd/go-errorlint from 1.5.2 to 1.6.0 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4899">#4899</a>)</li>
<li>a9ea7d32 unused: remove exported-is-used option</li>
<li>90664f6c build(deps): bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4893">#4893</a>)</li>
<li>78a738f7 unused: remove exported-is-used option (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4890">#4890</a>)</li>
<li>5536bb5c build(deps): bump github.com/mgechev/revive from 1.3.7 to 1.3.9 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4886">#4886</a>)</li>
<li>f903621d build(deps): bump github.com/gofrs/flock from 0.12.0 to 0.12.1 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4889">#4889</a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md">github.com/golangci/golangci-lint's changelog</a>.</em></p>
<blockquote>
<h3>v1.60.3</h3>
<ol>
<li>Updated linters
<ul>
<li><code>gosec</code>: from 81cda2f91fbe to ab3f6c1c83a0 (fix <code>G115</code> false positives)</li>
</ul>
</li>
<li>Misc.
<ul>
<li>Check that the Go version use to build is greater or equals to the Go version of the project</li>
</ul>
</li>
</ol>
<h3>v1.60.2</h3>
<ol>
<li>Updated linters</li>
</ol>
<ul>
<li><code>gofmt</code>: update to HEAD (go1.22)</li>
<li><code>gofumpt</code>: from 0.6.0 to 0.7.0</li>
<li><code>gosec</code>: fix G602 analyzer</li>
<li><code>gosec</code>: from 5f0084eb01a9 to 81cda2f91fbe (adds <code>G115</code>, <code>G405</code>, <code>G406</code>, <code>G506</code>, <code>G507</code>)</li>
<li><code>staticcheck</code>: from 0.5.0 to 0.5.1</li>
<li><code>staticcheck</code>: propagate Go version</li>
<li><code>wrapcheck</code>: from 2.8.3 to 2.9.0</li>
<li>⚠️ <code>exportloopref</code>: deprecation</li>
</ul>
<h3>v1.60.1</h3>
<ol>
<li>Updated linters
<ul>
<li><code>errorlint</code>: from 1.5.2 to 1.6.0</li>
<li><code>exhaustruct</code>: from 3.2.0 to 3.3.0 (recognize custom error values in return)</li>
<li><code>fatcontext</code>: from 0.2.2 to 0.4.0 (fix false positives for context stored in structs)</li>
<li><code>gocognit</code>: from 1.1.2 to 1.1.3</li>
<li><code>gomodguard</code>: from 1.3.2 to 1.3.3</li>
<li><code>govet</code> (<code>printf</code>): report non-constant format, no args</li>
<li><code>lll</code>: advertise max line length instead of just reporting failure</li>
<li><code>revive</code>: from 1.3.7 to 1.3.9 (new rule: <code>comments-density</code>)</li>
<li><code>sloglint</code>: from 0.7.1 to 0.7.2</li>
<li><code>spancheck</code>: from 0.6.1 to 0.6.2</li>
<li><code>staticcheck</code>: from 0.4.7 to 0.5.0</li>
<li><code>tenv</code>: from 1.7.1 to 1.10.0 (remove reports on fuzzing)</li>
<li><code>testifylint</code>: from 1.3.1 to 1.4.3 (new options: <code>formatter</code>, <code>suite-broken-parallel</code>, <code>suite-subtest-run</code>)</li>
<li><code>tparallel</code>: from 0.3.1 to 0.3.2</li>
<li><code>usestdlibvars</code>: from 1.26.0 to 1.27.0 (fix false-positive with number used inside a mathematical operations)</li>
<li><code>wsl</code>: from 4.2.1 to 4.4.1</li>
<li>️⚠️ <code>unused</code>: remove <code>exported-is-used</code> option</li>
</ul>
</li>
<li>Fixes
<ul>
<li>SARIF: sanitize level property</li>
<li>️⚠️ <code>typecheck</code> issues should never be ignored</li>
</ul>
</li>
<li>Documentation
<ul>
<li>Add link on linter without configuration</li>
<li>Remove 'trusted by' page</li>
<li><code>wsl</code> update documentation of the configuration</li>
</ul>
</li>
<li>misc.
<ul>
<li>🎉 go1.23 support</li>
</ul>
</li>
</ol>
<h3>v1.60.0</h3>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/golangci/golangci-lint/commit/c2e095c022a97360f7fff5d49fbc11f273be929a"><code>c2e095c</code></a> build(deps): bump github.com/securego/gosec/v2 from 81cda2f91fbe to ab3f6c1c8...</li>
<li><a href="https://github.com/golangci/golangci-lint/commit/f0c190436343e51e6b4dc98a368cf7bae0e5f33a"><code>f0c1904</code></a> feat: check that Go version use to build is greater or equals to the Go versi...</li>
<li><a href="https://github.com/golangci/golangci-lint/commit/2f53f2cf7a6fe5966d6697708e2c8935241b44e5"><code>2f53f2c</code></a> docs: update documentation (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4931">#4931</a>)</li>
<li><a href="https://github.com/golangci/golangci-lint/commit/1bdd38bd47b2336e477efa5bd002920477f07a2b"><code>1bdd38b</code></a> docs: update documentation assets (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4930">#4930</a>)</li>
<li><a href="https://github.com/golangci/golangci-lint/commit/561049d697280a624a1e40483158be8ccebb260c"><code>561049d</code></a> docs: update GitHub Action assets (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4929">#4929</a>)</li>
<li><a href="https://github.com/golangci/golangci-lint/commit/f338f3ef33f0f7b641100aa1fd759549cc959a8b"><code>f338f3e</code></a> build(deps): bump github.com/securego/gosec/v2 from 5f0084eb01a9 to 81cda2f91...</li>
<li><a href="https://github.com/golangci/golangci-lint/commit/741df1fc6a4963c5f7d3961c8dc07092a63d9f00"><code>741df1f</code></a> dev: fix GO_VERSION in post release workflow (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4926">#4926</a>)</li>
<li><a href="https://github.com/golangci/golangci-lint/commit/87dd8fe7552a8c8374ebde29db3bda8b28055962"><code>87dd8fe</code></a> exportloopref: deprecation (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4916">#4916</a>)</li>
<li><a href="https://github.com/golangci/golangci-lint/commit/af298e1e821449646f732ac4dea74b4434e0f230"><code>af298e1</code></a> chore: update gofmt (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4923">#4923</a>)</li>
<li><a href="https://github.com/golangci/golangci-lint/commit/132d81cb5a37a48b190b3fbb58eeb7fcc754f71a"><code>132d81c</code></a> build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.8.3 to 2.9.0 (<a href="https://redirect.github.com/golangci/golangci-lint/issues/4921">#4921</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/golangci/golangci-lint/compare/v1.58.0...v1.60.3">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/golangci/golangci-lint&package-manager=go_modules&previous-version=1.58.0&new-version=1.60.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
  • Loading branch information
dependabot[bot] authored Sep 12, 2024
1 parent faac055 commit f5192a3
Show file tree
Hide file tree
Showing 36 changed files with 339 additions and 286 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
if: env.GIT_DIFF
uses: actions/setup-go@v5
with:
go-version: '1.21.1'
go-version: '1.22.1'
cache: true
env:
GOOS: ${{ matrix.targetos }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-ql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21.1'
go-version: '1.22.1'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.21.1'
go-version: '1.22.1'
cache: true

- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.21.1'
go-version: '1.22.1'
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.21.1'
go-version: '1.22.1'
cache: true

- name: Set Env
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/simulations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.21.1'
go-version: '1.22.1'

- name: Install runsim
run: export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/[email protected]
Expand All @@ -38,7 +38,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: '1.21.1'
go-version: '1.22.1'
cache: true
- name: Test application non-determinism
if: env.GIT_DIFF
Expand All @@ -60,7 +60,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: '1.21.1'
go-version: '1.22.1'
cache: true
- uses: actions/cache@v4
if: env.GIT_DIFF
Expand All @@ -87,7 +87,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: '1.21.1'
go-version: '1.22.1'
cache: true
- uses: actions/cache@v4
if: env.GIT_DIFF
Expand All @@ -113,7 +113,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: '1.21.1'
go-version: '1.22.1'
cache: true
- uses: actions/cache@v4
if: env.GIT_DIFF
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.21.1'
go-version: '1.22.1'
- name: Display Go Version
run: go version
- uses: actions/cache@v4
Expand All @@ -38,7 +38,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: '1.21.1'
go-version: '1.22.1'
cache: true
- name: Test and Create Coverage Report
if: env.GIT_DIFF
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: '1.21.1'
go-version: '1.22.1'
cache: true

- name: Test E2E
Expand Down
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
run:
tests: false
skip-dirs:
- tests/simulation

govet:
# Enable analyzers by name (in addition to default).
Expand All @@ -19,9 +17,9 @@ linters:
# - wsl
- asciicheck
- bodyclose
- copyloopvar
- dogsled
- errcheck
- exportloopref
- goconst
- gocritic
- gofmt
Expand Down Expand Up @@ -62,6 +60,8 @@ issues:
- text: "SA1019: \"github.com/cosmos/ibc-go/v8/modules/core/02-client/types\" is deprecated"
linters:
- staticcheck
exclude-dirs:
- tests/simulation
max-same-issues: 50

linters-settings:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder
FROM golang:1.21.1-alpine AS builder
FROM golang:1.22.1-alpine AS builder

RUN apk add --no-cache \
ca-certificates \
Expand Down
3 changes: 2 additions & 1 deletion ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

appparams "github.com/ojo-network/ojo/app/params"
"github.com/ojo-network/ojo/util"
oracletypes "github.com/ojo-network/ojo/x/oracle/types"
)

Expand Down Expand Up @@ -57,7 +58,7 @@ func checkFees(minGasPrices sdk.DecCoins, fees sdk.Coins, gasLimit uint64) error
// Determine the required fees by multiplying each required minimum gas
// price by the gas limit, where fee = ceil(minGasPrice * gasLimit).
// Zero fees are removed.
glDec := math.LegacyNewDec(int64(gasLimit))
glDec := math.LegacyNewDec(util.SafeUint64ToInt64(gasLimit))
for _, gp := range minGasPrices {
if gasLimit == 0 || gp.IsZero() {
continue
Expand Down
1 change: 1 addition & 0 deletions client/query/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func NewClient(grpcEndpoint string) (*Client, error) {
}

func (c *Client) dialGrpcConn() (err error) {
//nolint: all
c.grpcConn, err = grpc.Dial(
c.grpcEndpoint,
grpc.WithTransportCredentials(insecure.NewCredentials()),
Expand Down
Loading

0 comments on commit f5192a3

Please sign in to comment.