Comments (3)
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.
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.
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)
- Windows: A required privilege is not held by the client HOT 3
- Shards installs wrong version of lucky HOT 6
- branch master not satisfy condition >= HOT 5
- Tell why upgrading more
- Inconsistency in `~> x.y.z` requirement with pre-release HOT 1
- Unable to resolve dependency with pre-release version HOT 5
- Refactor resolver code
- `shards remove` command
- Prune command fails to remove symlink HOT 1
- Notify users of deprecated/outdated package HOT 8
- Different behavior between `shards run` and `crystal run` HOT 3
- Installed version in `lib` does not match version in `shard.lock` HOT 3
- verbose option should output also out and err from postinstall script
- FR: Option for out-of-source builds HOT 4
- Equivalent of "go mod vendor"? HOT 2
- Ambiguous shard name source checker error message could be more helpful
- Connect `executables` with `targets` HOT 4
- Installing executables on Windows only works for `.exe`
- Allow setting global mirror for shard dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shards.