ArthursA
Denoβ€’9mo agoβ€’
1 reply
Arthurs

`deno run --cached-only` downloads stuff anyways

Hey there πŸ‘‹
I recently upgraded a project to deno 2.1.10. When starting the server, I noticed that deno would download a bunch of packages.

DENO_DIR=build/cache TZ=UTC deno run --allow-all -- src/server.ts

Which is weird because my dependencies are already in the build/cache folder.

So I added --cached-only

DENO_DIR=build/cache TZ=UTC deno run --cached-only --allow-all -- src/server.ts

I was at least expecting an error, but it appears deno is still downloading the dependencies as if the option did not exist.
What am I doing wrong ?
Was this page helpful?