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 go module versions #1646

Merged
merged 7 commits into from
Nov 30, 2022
Merged

Conversation

ryanchristo
Copy link
Member

@ryanchristo ryanchristo commented Nov 29, 2022

Description

This pull request updates app, api, types, data, and ecocredit go module versions to the latest major versions that will be tagged as part of the v5.0 release (app => v5, api => v2, types => v2, data => v2, ecocredit => v3).


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@ryanchristo ryanchristo added the backport/v5.0.x backport to release/v5.0.x branch label Nov 29, 2022
@codecov
Copy link

codecov bot commented Nov 29, 2022

Codecov Report

Merging #1646 (464d105) into main (a617f7d) will decrease coverage by 5.21%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1646      +/-   ##
==========================================
- Coverage   78.25%   73.03%   -5.22%     
==========================================
  Files         266      228      -38     
  Lines       19772    13332    -6440     
==========================================
- Hits        15472     9737    -5735     
+ Misses       3419     2884     -535     
+ Partials      881      711     -170     
Impacted Files Coverage Δ
app/app.go 92.39% <ø> (ø)
app/client/cli/root.go 61.26% <ø> (ø)
app/client/cli/testnet.go 15.86% <ø> (ø)
app/testsuite/helpers.go 84.54% <ø> (ø)
app/testsuite/network_config.go 100.00% <ø> (ø)
app/testsuite/suite.go 0.00% <ø> (ø)
app/upgrades/v5/upgrade.go 78.12% <ø> (ø)
x/data/client/testsuite/util.go 100.00% <ø> (ø)
x/data/server/msg_anchor.go 58.46% <ø> (ø)
x/data/server/msg_attest.go 65.11% <ø> (ø)
... and 177 more

x/data/module/module.go Outdated Show resolved Hide resolved
@ryanchristo ryanchristo marked this pull request as ready for review November 29, 2022 21:02
@ryanchristo ryanchristo requested a review from a team November 29, 2022 21:02
Copy link
Member

@clevinson clevinson left a comment

Choose a reason for hiding this comment

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

Pre-approving with one small nit. I think we have an unnecessary replace directive in x/intertx/go.mod

@@ -126,4 +126,6 @@ require (

replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1

replace github.com/regen-network/regen-ledger/types => ../../types
replace github.com/regen-network/regen-ledger/api/v2 => ../../api
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
replace github.com/regen-network/regen-ledger/api/v2 => ../../api

I don't see api/v2 anywhere in this g.mod, so I don't think we need the replace directive here.

Copy link
Member Author

Choose a reason for hiding this comment

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

types imports api so we get the following if not included:

go: github.com/regen-network/regen-ledger/api/v2@v2.0.0: invalid version: unknown revision api/v2.0.0

because it can't find api/v2 (it doesn't exist yet)

@ryanchristo ryanchristo merged commit 18fbac7 into main Nov 30, 2022
@ryanchristo ryanchristo deleted the ryan/update-module-versions branch November 30, 2022 00:49
mergify bot pushed a commit that referenced this pull request Nov 30, 2022
ryanchristo added a commit that referenced this pull request Nov 30, 2022
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
@@ -1,4 +1,4 @@
module github.com/regen-network/regen-ledger/api
module github.com/regen-network/regen-ledger/api/v2
Copy link
Member

Choose a reason for hiding this comment

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

Why was this done? This seems like a spurious go module major version bump. Were there actually breaking changes? I thought we weren't releasing breaking proto changes to production. With proper buf breaking checks, the api go.mod should never have been bumped past v1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v5.0.x backport to release/v5.0.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants