-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shards keeps downloading dependencies #288
Comments
A few more things.
$ shards install --local
Resolving dependencies
Missing repository cache for "lucky". Please run without --local to fetch it. |
There is something wrong with either the shard.yml or your disk, because the same set of dependencies is being fetched again and again in a loop. |
It's not a never-ending loop though - for whatever reason it is just processing the various dependencies several times . Here is a much smaller example:
So it finishes, but it fetches the emoji repo 3 times. |
I can't reproduce. From your logs, I guess the repository is cloned over and over and never put in the cache. Run My guess is you have a problem on your disk or your shard's cache folder. There should be a
|
The shards command removes the repository again: $ shards install --verbose
Resolving dependencies
Fetching https://github.com/veelenga/emoji.cr.git
git clone --mirror --quiet -- 'https://github.com/veelenga/emoji.cr.git' /home/peter/.cache/shards/github.com/veelenga/emoji.cr.git
git show master:shard.yml
git log -n 1 --pretty=%H master
git show 22c147f37333a94249eac7ce54e7e9f1c4999838:shard.yml
Installing emoji (0.3.1 at 22c147f37333a94249eac7ce54e7e9f1c4999838)
git ls-remote --get-url origin
rm -rf '/home/peter/.cache/shards/github.com/veelenga/emoji.cr.git'
Fetching https://github.com/veelenga/emoji.cr.git
git clone --mirror --quiet -- 'https://github.com/veelenga/emoji.cr.git' /home/peter/.cache/shards/github.com/veelenga/emoji.cr.git
rm -rf ''/home/peter/src/active/woot/peter/lib/emoji''
git ls-tree -r --full-tree --name-only 22c147f37333a94249eac7ce54e7e9f1c4999838 -- shard.yml
git archive --format=tar --prefix= 22c147f37333a94249eac7ce54e7e9f1c4999838 | tar -x -f - -C '/home/peter/src/active/woot/peter/lib/emoji'
git log -n 1 --pretty=%H 22c147f37333a94249eac7ce54e7e9f1c4999838
Link /home/peter/src/active/woot/peter/lib to /home/peter/src/active/woot/peter/lib/emoji/lib
git ls-remote --get-url origin
rm -rf '/home/peter/.cache/shards/github.com/veelenga/emoji.cr.git'
Fetching https://github.com/veelenga/emoji.cr.git
git clone --mirror --quiet -- 'https://github.com/veelenga/emoji.cr.git' /home/peter/.cache/shards/github.com/veelenga/emoji.cr.git
git ls-tree -r --full-tree --name-only 22c147f37333a94249eac7ce54e7e9f1c4999838 -- shard.yml
git show 22c147f37333a94249eac7ce54e7e9f1c4999838:shard.yml
Writing shard.lock |
Ahhhh, I know why |
I have this in
So that makes |
I'm thinking that the protocol shouldn't matter - just the host and path. If you agree I'll prep a PR. |
I suppose it's acceptable. |
Running
shards install
takes a very long time on a project with a number of dependencies, asshards
keep refetching the same sources.Here's an example from a
lucky
project (just an example, but could be anything really):And so on and so on until eventually it finishes. But it takes ages.
shards 0.9.0 and crystal 0.29.0 but also experienced on older versions
The text was updated successfully, but these errors were encountered: