crystal-lang / shards

Dependency manager for the Crystal language
Other
763 stars 100 forks source link

shards prune does nothing #482

Closed mationai closed 3 years ago

mationai commented 3 years ago

Removed unused dependencies from shard.yml and removed all require in src files. shard prune does nothing. The library is still in /lib.

Also, how do I upgrade shards? I'm on 0.11.1 . shards update shards doesn't do it.

Blacksmoke16 commented 3 years ago

I'm pretty sure shards prune works based off of your shard.lock. So try doing a shards update then shards prune after removing the dependency from shard.yml. Otherwise it's still "required".

Also, how do I upgrade shards?

Normally it gets updated when Crystal gets upgraded. What version of Crystal are you on and how did you install it?

Also the forums might be a better place for questions like this.

straight-shoota commented 3 years ago

Please try again with latest shards release. There's no point in looking at a possible bug in an outdated version that might have been fixed long ago. If you can reproduce with latest (or master), please provide a reproducible example.

Shards binaries are usually distributed with the Crystal release. Some package managers provide a standalone shards package. You can also just download the release tarball for Crystal and extract the shards binary from there. Or build from source in this repository.

mationai commented 3 years ago

Updating crystal to the latest updated shards as well and prune works now. Thank you @Blacksmoke16 @straight-shoota