Skip to content

Allow overriding dependencies #299

@paulcsmith

Description

@paulcsmith

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions