Closed felipecrs closed 4 days ago
I think what's happening here is its using a code cache from a previous build, but ./pkgx --version 2>&1
is erroring on "unversioned developer build" before it code caches all the modules? If you have a successful run you should see it use the code cache I think.
I'll add the code cache path to the debug logs.
Oh ok, indeed, if I try a working command, code cache seems to be working:
❯ ./pkgx --sync 2>&1 | grep cache
DEBUG RS - denort::cache::cache_db:170 - Opening cache /home/felipecrs/.cache/deno/node_analysis_cache_v2...
DEBUG RS - denort::standalone::code_cache:45 - Loaded 216 code cache entries
Yeah, it doesn't save the code cache if it errors during module loading. Perhaps there could be a partial save done in some cases, but I'm not sure it's worth the effort.
Yeah, probably not worth it. Feel free to close this issue then.
Version: Deno 2.1.0
Reproduction: