pkgxdev / libpkgx

`import`… but with pkging powers
https://npmjs.com/libpkgx
Apache License 2.0
62 stars 11 forks source link

Sync cache #60

Closed mxcl closed 6 months ago

mxcl commented 7 months ago

Note that the sqlite3 deno library downloads its own sqlite. Instead we should:

  1. sync
  2. install sqlite
  3. have the deno sqlite3 use our sqlite

However there isn’t a way to get it to do that yet. See https://github.com/denodrivers/sqlite3/issues/119

Possibly we could vendor and modify.

Also the cache should “failsafe” and fall back on the pantry in the case of issues with FFI or sqlite or our code.

coveralls commented 7 months ago

Pull Request Test Coverage Report for Build 7732868666


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/hooks/useSync.ts 13 19 68.42%
src/plumbing/which.ts 3 13 23.08%
src/hooks/usePantry.ts 19 44 43.18%
src/hooks/useSyncCache.ts 102 132 77.27%
<!-- Total: 137 208 65.87% -->
Totals Coverage Status
Change from base Build 7713391169: 0.8%
Covered Lines: 2497
Relevant Lines: 2871

💛 - Coveralls