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

types: Remove Revoked from VSP info response. #474

Merged
merged 3 commits into from
May 29, 2024

Conversation

jholdstock
Copy link
Member

This was marked as deprecated in the previous release and is now being removed.

Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

I'm not sure what process VSP uses for bumping its module majors, but this is a breaking change to the public API and thus necessitates a new major module version.

The way I handle this over in dcrd is by first bumping the major module version to ensure breaking code never makes it into old module versions even when they're pulled by commit hash.

I'm approving since I don't want to hold it up if that's not how you handle module management.

@jholdstock
Copy link
Member Author

Yeah sorry, I was a bit too eager with opening the PR and realized I still needed to make changes. Should be good now.

Run tests and linters against a hard-coded set of local submodules
instead of attempting to find submodules dynamically.

While this has the obvious drawback of needing to manually update the
list of submodules, it greatly simplifies the script by removing a bunch
of regexes and string manipulation. This trade-off seems worthwhile
because the list of submodules in this repo will not be something which
changes often.

This change makes the script less brittle because it is hard-coded to
always run against the local code, regardless of any changes to module
versionining or project dependencies.
Upcoming changes constitute breaking public API changes to both the
client and types modules, therefore this bumps the version numbers of
both modules and adds local replacements to go.mod files such that the
new versions can be used before they are publicly tagged.
This was marked as deprecated in the previous release and is now being
removed.
@davecgh
Copy link
Member

davecgh commented May 29, 2024

$ git diff
diff --git a/run_tests.sh b/run_tests.sh
index 40d98c2..ae48f86 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -14,7 +14,7 @@ go version
 # Run tests on root module and all submodules.
 echo "==> test all modules"
 ROOTPKG="github.com/decred/vspd"
-GORACE="halt_on_error=1" go test -race $ROOTPKG/...
+GORACE="halt_on_error=1" go test -race ./...

@jholdstock jholdstock merged commit ba5b1b2 into decred:master May 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants