Giter VIP home page Giter VIP logo

Comments (3)

straight-shoota avatar straight-shoota commented on June 18, 2024

The --local flag affects the repository cache, not the lib directory where dependencies are checked out.
I figure the documentation for this option should be improved to make that clear.

If you want to have dependencies installed in a custom path, you can set the environment variable SHARDS_INSTALL_PATH.

However, if you simply want to use dependencies already installed in that path and not do any dependency resolution, there's no point in using shards at all. It has nothing to do.
After adding that path to CRYSTAL_PATH you can just run crystal build directly.

from shards.

CyberTailor avatar CyberTailor commented on June 18, 2024

If you want to have dependencies installed in a custom path, you can set the environment variable SHARDS_INSTALL_PATH.

Same error.

After adding that path to CRYSTAL_PATH you can just run crystal build directly.

With shards build I don't have to write targets manually ;-)

from shards.

straight-shoota avatar straight-shoota commented on June 18, 2024

Same error.

Yes. --local tells shards to not update the repository cache. But it needs all dependency repositories to be available in the cache.
When dependencies are missing, it asks to run without --local to be able to fetch them. Without a populated repository cache, shards cannot work.

Shards' job is to resolve dependencies. Your use case seems to have no need for that, so you should better do without trying to mess with shards to prevent it from its job.

If you want build recipes, I'd recommend to use a build system like make.

from shards.

Related Issues (20)

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.