modernise with go fix, drop deprecated rand.Seed - #10
Conversation
Coverage Report for CI Build 32225786380Coverage decreased (-0.9%) to 89.722%Details
Uncovered Changes
Coverage Regressions4 previously-covered lines in 1 file lost coverage.
Coverage Stats
💛 - Coveralls |
|
this needs a rebase, and it isn't a clean one: the branch predates #5 and #9, so both conflicting files would come back wrong.
I tried the rebase and backed out rather than resolve it for you, since picking sides there could quietly drop the concurrency fix. Redoing the not blocking the release, v1.3.3 is going out with #7, #8 and #9, since #7 fixes a |
0207a76 to
c6570e0
Compare
c6570e0 to
c100733
Compare
|
conflicting again, and that one is on me: I merged #11 before this, and both touch rather than a third rebase, re-running no rush, nothing depends on it. |
c100733 to
802ae63
Compare
go fix ./... replaces interface{} with any, rewrites counted loops as
range over int and removes the ch := ch capture obsolete since go 1.22.
README and _example are swept by hand as the go tool skips them.
rand.Seed is deprecated and no longer needed, the global source is
seeded randomly since go 1.20, its time import goes with it. outChs
preallocated as the rewritten loop makes the capacity known, flagged
by prealloc.
802ae63 to
18ba596
Compare
|
Rebuilt from current master instead of rebasing, as you suggested. The branch is now a single commit on top of 12bf64e, no history from before #5.
Both things you flagged are checked rather than assumed:
On the dependency update, there is nothing to take. testify v1.12.0 and yaml.v3 v3.0.1 are the latest releases, and x/sync stops at v0.11.0 because v0.12.0 declares
|
go fix ./...plus the two places the go tool skips,README.mdand_example/, which is excluded by its leading underscore:interface{}becomesanych := chloop variable copies go, obsolete since go 1.22Also drops the deprecated
rand.Seedcall, the global source has been seeded randomly since go 1.20, and preallocatesoutChs, whichpreallocflags once the loop count is known.anyis an alias forinterface{}, so there is no API change here.This one rewrites most lines in the repo, so merge it after #5, #7, #9 and #11 and I will rerun the sweep on top rather than leaving the conflicts to sort out by hand.