-
-
Notifications
You must be signed in to change notification settings - Fork 105
Description
It would be helpful to be able to manually override a dependency, especially with how quickly Crystal changes.
Let's say for example that I have a dependency called taco_shard
and it relies on another dependency called cheese_shard
. Everything works but then a new version of Crystal makes a change that breaks cheese_shard
. cheese_shard
is no longer maintained so you fork it to make changes to make it work with the new Crystal. The problem is that you don't have a way to easily override that dependency without also forking taco_shard
. It would be awesome to be able to just add something to shard.yml
that overrides the version/resolver:
cheese_shard:
github: myfork/cheese_shard
override: true # say that it is ok to override what `taco_shard` specified
So even if taco_shard
says it should use original/cheese_shard
my shard.yml
would override that and use the specific fork. This could also work for versions.
Prior art
override
option in Elixir mix: https://hexdocs.pm/mix/Mix.Tasks.Deps.html#module-dependency-definition-options (search for override)