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

golangci lint fix #8971

Merged
merged 6 commits into from
Feb 24, 2024
Merged

golangci lint fix #8971

merged 6 commits into from
Feb 24, 2024

Conversation

ivanlei
Copy link
Contributor

@ivanlei ivanlei commented Feb 23, 2024

closes: #8974
refs: #XXXX

Description

Update agoric golang code to address deprecation warnings introduced in v46 SDK update.

  • gh.neting.cc.cosmos.cosmos-sdk.types.errors.WrapXXX becomes cosmossdk.io.errors.WrapXXX
  • gh.neting.cc.cosmos.cosmos-sdk.types.Uint becomes cosmossdk.io.math.Uint
    These deprecation lint checks were made non-fatal in Tolerate golangci-lint deprecation errors #8866

Introduce make lint in golang/cosmos/

Remove CI directives to skip treating deprecations as failures.

Security Considerations
None. The code should be functionally equivalent before & after the fix, thus introducing no new security concerns.

Scaling Considerations
None. The code should be functionally equivalent before & after the fix, thus introducing no new scaling concerns.

Test Plan
Tested via CI.

Upgrade Considerations
Needs a chain halting upgrade.

@ivanlei ivanlei marked this pull request as draft February 23, 2024 02:26
@ivanlei ivanlei changed the title Ivan/xxx golangci lint fix golangci lint fix Feb 23, 2024
@ivanlei ivanlei marked this pull request as ready for review February 23, 2024 14:18
@ivanlei ivanlei requested a review from JimLarson February 23, 2024 14:18
@ivanlei ivanlei added agoric-cosmos automerge:squash Automatically squash merge labels Feb 23, 2024
Copy link
Contributor

@JimLarson JimLarson left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this!

Please reference #8803 too. This PR handles many of the listed tasks.

@mergify mergify bot merged commit 101fa90 into master Feb 24, 2024
66 checks passed
@mergify mergify bot deleted the ivan/XXX_golangci-lint-fix branch February 24, 2024 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agoric-cosmos automerge:squash Automatically squash merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove warnings displayed during from golangci-lint CI job
2 participants