Repository navigation
Conversation
Mechanical: the module path becomes github.com/uber-go/tally/v7, every internal import is updated to match, and Version becomes "7.0.0". No behavioral change, so this is kept separate from the three commits that carry the actual work. v7 rather than v5 or v6: both are already taken in this repository, as branches (refs/heads/v5, refs/heads/v6) and as published tags (v5.0.0, v6.0.1). Going straight to v7 avoids colliding with either. A new major is the cheap option here, not the expensive one. Uber's Go monorepo already pins v3 and v4 side by side, so v7 lands alongside them and breaks nothing on day one; breaking v3 in place would touch tens of thousands of files in a single commit.
Owner
Author
|
Superseded by uber-go#281 — org membership came through, so the stack now lives on the upstream repo. Review there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack 4 of 4. Based on #3. Mechanical — skip it.
go.mod→module github.com/uber-go/tally/v7version.go→Version = "7.0.0"41 files, 65 insertions, 65 deletions, and the only change that is not an import line is the version constant. No behavioral change. Kept in its own commit so reviewers can skip it wholesale and so it can be re-run trivially if the stack is rebased.
Why v7
v5 and v6 are already taken in this repository, as branches (
refs/heads/v5,refs/heads/v6) and as published tags (v5.0.0,v6.0.1). v7 is the next number that collides with nothing.Why a new major is the cheap option
Semantic import versioning means v7 lands alongside v3 and v4 rather than replacing them. Uber's Go monorepo already pins v3 (
v3.5.8+incompatible) and v4 (v4.1.17) side by side today, so this adds a third pin and breaks nothing on day one; adopters move when they choose to.Breaking the interface in v3 in place would instead touch roughly 81,000 files in a single commit. That is the comparison that makes a major bump the conservative choice here, not the aggressive one.
Not done, deliberately
No tag. Tagging publishes to the Go module proxy, which caches immutably — effectively irreversible. That is a decision for the maintainers after the design questions below are settled, not something to slip in with the code.
Open questions for maintainers
StatsReporter. Every one of them has to add two methods to compile against v7. Is that acceptable, or is an optional interface (type-assert forReportNativeHistogram, skip if absent) worth the ugliness to keep the break out of the required surface?NativeHistogramDatathe right seam, or should tally own an encoding?go build ./... && go test ./... && gofmt -l .clean on this commit alone.