Kat Marchán

Results 641 comments of Kat Marchán

The backtracking is kind of irrelevant: what there needs to be an async API for is "I ran into a new-to-the-resolver dependency name, and I need to get its list...

The way Orogene works is that it queues up multiple _concurrent_ metadata requests based on the latest resolved version of their parent package. So if you have just resolved `v1.2`...

cacache defaults to, iirc, sha256. The odds of hash collisions is... negligible. I think testing for it would be overkill, tbh. If you had 1 _billion_ entries in cacache, your...

Yes, this is a breaking change, and yes, you'll have to bump `INDEX_VERSION`. In general, I don't worry too much about migration because cacache is intended to be a _cache_,...

Yeah, I'll do that next time I do a semver-major release :)

seems like a good idea :)

Index files are append-only in order to preserve the high-parallelism invariant. In the JS version of cacache, I wrote a "garbage collector" that could be run "offline" (aka, when you...

oh duh. I forgot that delete just inserts a null. Yeah, I think it would be nice to have built-in "vacuum"/GC support. I just haven't gotten around to it.

https://github.com/zkat/cacache-rs/blob/main/src/index.rs#L46-L54 oh. I guess that's just how serde serializes `Vec`

base64 seems like a nicer option to me in general. I don't know if the difference in performance will matter, and storage will help a lot.