Git Product home page Git Product logo

Comments (5)

jeroenptrs avatar jeroenptrs commented on September 26, 2024

Hey @aaronwlee what OS are you on? Windows?

from denopack.

jeroenptrs avatar jeroenptrs commented on September 26, 2024
Deno caches remote imports in a special directory specified by the DENO_DIR environment variable.
It defaults to the system's cache directory if DENO_DIR is not specified.
The next time you run the program, no downloads will be made.
If the program hasn't changed, it won't be recompiled either. The default directory is:

On Linux/Redox: $XDG_CACHE_HOME/deno or $HOME/.cache/deno
On Windows: %LOCALAPPDATA%/deno (%LOCALAPPDATA% = FOLDERID_LocalAppData)
On macOS: $HOME/Library/Caches/deno
If something fails, it falls back to $HOME/.deno

I'll add fallbacks to these folders and an option to pass a custom path to the Deno root folder in the next release.

This would only occur if you're using pluginCacheResolver or one of the hooks that uses it internally.
You could use the useCompile hook in the meantime, which also automatically uses the correct cache folder.

I'd still be interested to hear what OS you're on, how you installed Deno (using deno_install?) and where your Deno root folder is located (the one where your Deno executable is located and has a gen and dep subfolder)

from denopack.

aaronwlee avatar aaronwlee commented on September 26, 2024

I've tested it in Windows 10 2004 (19041.388 build) and WSL (Ubuntu bionic)

For the installation, In the Windows system, I've installed it via chocolatey and curl -fsSL https://deno.land/x/install/install.sh | sh in Ubuntu.

Both of these OS doesn't have a DENO_DIR env.

you can get some hint from here I think :)
https://github.com/timreichen/Bundler/blob/master/cache.ts

from denopack.

jeroenptrs avatar jeroenptrs commented on September 26, 2024

@aaronwlee I just published a new version with better cache support. Can you check if this behaviour has changed with denopack 0.2.0?

from denopack.

jeroenptrs avatar jeroenptrs commented on September 26, 2024

I spun up a remote Linux server to check if it now resolves properly, so I'm closing this issue for now.
@aaronwlee if issues on Windows persist feel free to reopen this issue 🙂

from denopack.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.