Closed timotheecour closed 3 years ago
I doubt we can transfer it to nim-lang, as we don't have the manpower to maintain it over there either.
I expect maintenance burden to be: review PRs from external contributors merge PRS
the above situation is pretty bad, but alternative suggestions welcome, for cases like this where original maintainer has moved on and allowing more than 1 people to merge increases robustness against project abandonment
You're supposed to use https://github.com/status-im/nim-chronos/blob/master/chronos/asyncsync.nim instead. It is the more recent version of asynctools.
I now have write access and I am helping Cheatfate. Closing.
You're supposed to use https://github.com/status-im/nim-chronos/blob/master/chronos/asyncsync.nim instead. It is the more recent version of asynctools.
It depends on chronos though, doesn't it?
Since you have write access now I assume you'll help merge any PRs that are necessary.
Correct.
I dont understand , asynctools
self contained asyncsync.nim
already ?
I dont understand , asynctools self contained asyncsync.nim already ?
what do you mean?
the whole point of this issue was to improve the situation I described in top post; if @Araq can merge PRs in the backlog, so that other packages (eg jester, httpbeast etc) can use requires "asynctools"
again instead of these:
requires "https://github.com/timotheecour/asynctools#pr_fix_compilation"
requires "https://github.com/iffy/asynctools#pr_fix_for_latest"
then the problem is solved
You're supposed to use https://github.com/status-im/nim-chronos/blob/master/chronos/asyncsync.nim instead. It is the more recent version of asynctools.
I reply to araq's comment.
I've sent out https://github.com/dom96/jester/pull/279 and https://github.com/dom96/httpbeast/pull/49; what else needs to be updated? is there a nimble command to figure out dependencies on asynctools?
Nope, we don't have reverse deps tracking anywhere (unless nimble.directory implements this, but I'm not aware that it does)
Nope, we don't have reverse deps tracking anywhere (unless nimble.directory implements this, but I'm not aware that it does)
actually a local tool would be good enough (and probably better because more flexible); seems like it's not hard to implement on top of nimble dump --json regex
, eg:
nimble dump --json regex | jq .requires
[
{
"name": "nim",
"str": ">= 1.0.0",
"ver": {
"kind": "verEqLater",
"ver": "1.0.0"
}
},
{
"name": "unicodedb",
"str": ">= 0.7.2",
"ver": {
"kind": "verEqLater",
"ver": "0.7.2"
}
}
]
nimble could grow a nimble query <query params>
or (easier to implement, more flexible and good enough) and API that can be called via: proc query(param: JSonNode): JsonNode
to allow maximum flexibility
@timotheecour @haxscramper already done something like that. https://github.com/nim-lang/nimble/issues/890#issuecomment-803595931
great; so the next step would be to either integrate into nimble, or make it available as a nimble package /cc @haxscramper (unless it already is, i couldn't tell from linked discussion?)
I will add this to my upcoming nimble RFC, and this topic was partially discussed yesterday on the discord chat. Right now I could say that I had to write a PNode-based manifest parser since nimble dump was kind slow and fragile for older packages. I have cleaned up parser I used for comment in #890 and it is now a part hnimast package, but it would be pretty easy to adopt. @bung87 have already used it to parse package info for their nimble fork I believe.
Note that I'm currently not up to discussion about this, and it looks like slightly off-topic for the current issue anyway.
https://github.com/cheatfate/asynctools seems un-maintained but is used by a number of packages (transitively or directly), can we transfer it to nim-lang (using same approach as https://github.com/nim-lang/RFCs/issues/365 for nimlime) ? /cc @cheatfate
Lots of PRs have been left hanging without any feedback, eg: https://github.com/cheatfate/asynctools/pull/23#issuecomment-667599495
https://github.com/cheatfate/asynctools/pull/28#issuecomment-816727455
requires "https://github.com/timotheecour/asynctools#pr_fix_compilation"
httpbeast.nimble:
Test dependencies
When https://github.com/cheatfate/asynctools/pull/28 is fixed,
change this back to normal asynctools
requires "https://github.com/iffy/asynctools#pr_fix_for_latest"