Closed diamondburned closed 4 years ago
Made a PR: https://github.com/vulcand/oxy/pull/197
❤ ▻ go test ./... -count=1 -v | grep -aE '^ok\s+'
ok github.com/vulcand/oxy/buffer 0.046s
ok github.com/vulcand/oxy/cbreaker 0.167s
ok github.com/vulcand/oxy/connlimit 0.035s
ok github.com/vulcand/oxy/forward 0.174s
ok github.com/vulcand/oxy/memmetrics 0.022s
ok github.com/vulcand/oxy/ratelimit 0.022s
ok github.com/vulcand/oxy/roundrobin 0.603s
ok github.com/vulcand/oxy/stream 1.010s
ok github.com/vulcand/oxy/trace 0.009s
ok github.com/vulcand/oxy/utils 0.004s
Hello, the main problem with the holster is the dependencies of the holster it-self. It's a "utils/helper" package with too many unrelated dependencies.
https://github.com/mailgun/holster/blob/master/go.mod
And those dependencies are a pain to manage.
Yeah, I figured that's the problem, and I wrote it in the issue description. I even thought of copy-pasting code and attributing it the appropriate license, but that seems tedious as I don't know how licenses work.
I think it's still better than a Launchpad dependency though. Bazaar is bizarre.
FYI, this repo is not really maintained, I tried several times to get the rights but the admins of the vulcand organization don't answer.
So don't put to much hope in your PR.
Keeping around deprecated dependencies don't sound any better, either. I'm not sure what your solution would be.
I just realized vulcand
owns this. Sorry.
Do you plan on forking this and maintaining it there while archiving/deprecating this repository?
It's an old repository: the core design need to be updated with the current Go practices, and the core itself can be rewritten in another way.
Given that Caddy's release candidates are pretty close to completion, is there any faster way than waiting for a rewrite? I personally think it's still usable as-is and just requires some updates.
So you have to fork.
I'm trying to build Caddy 2, but Caddy 2 depends on this dependency (
vulcand/oxy
), which depends ongithub.com/mailgun/ttlmap
, which depends ongithub.com/mailgun/minheap
, which has tests that depends onlaunchpad.net/gocheck
.A quick breakdown of the dependencies
launchpad.net/gocheck
is deprecated. It has been moved togithub.com/go-check/check
. This isn't the problem, but only one of the tiny things that sucks.github.com/mailgun/minheap
andgithub.com/mailgun/ttlmap
are both deprecated. They are moved to a bigger monorepo ingithub.com/mailgun/holster
. This annoyingly means that all those huge dependencies listed in thego.mod
will be fetched along withholster
.github.com/vulcand/oxy
(this project) usesttlmap
, which is not only deprecated (as mentioned above), but also drags down the Bazaar dependency hosted on Launchpad for whatever reason.Solution
Change
github.com/mailgun/ttlmap
togithub.com/mailgun/holster
, which hasholster.TTLMap
.