Skip to content

shards install gives incompatible dependencies when installing from sources #404

@nilslindemann

Description

@nilslindemann

In order to be up to date with changes made in this repo, i was just trying to install Mint from sources.

I installed the Crystal compiler this way (and not this way because of this), on a recent Linux Mint.

I added two symlinks to crystal and shards.

sudo ln -s /home/nils/run/crystal-1.0.0-1/bin/crystal /usr/local/bin/crystal
sudo ln -s /home/nils/run/crystal-1.0.0-1/bin/shards /usr/local/bin/shards

After doing this, crystal --version gives 1.0.0, and shards --version gives 0.14.1.

Now i proceeded as described here -> Install from source, but the third command, shards install gives the following output and i am not sure how to proceed (Crystal is new for me). Should i use --ignore-crystal-version or should i try to update these seemingly incompatible shards, and if so, how do i do this? Any hints appreciated.

Here is the output of shards install:

nils@eve:~/run/mint$ shards install
Resolving dependencies
Fetching https://github.com/mosop/string_inflection.git
Fetching https://github.com/schovi/baked_file_system.git
Fetching https://github.com/kemalcr/kemal.git
Fetching https://github.com/luislavena/radix.git
Fetching https://github.com/jeromegn/kilt.git
Fetching https://github.com/crystal-loot/exception_page.git
Fetching https://github.com/jwaldrip/admiral.cr.git
Fetching https://github.com/gdotdesign/tree_template.git
Fetching https://github.com/vladfaust/time_format.cr.git
Fetching https://github.com/gdotdesign/cr-dotenv.git
Fetching https://github.com/icyleaf/markd.git
Fetching https://github.com/crystal-ameba/ameba.git
Fetching https://github.com/makenowjust/crystal-diff.git
Unable to satisfy the following requirements:

- `crystal (~> 0.23, >= 0.23.1)` required by `string_inflection 0.2.1`
- `crystal (>= 0.35.0)` required by `baked_file_system 0.10.0`
- `crystal (>= 0.36.0)` required by `kemal 1.0.0`
- `crystal (>= 0.34.0)` required by `admiral 1.11.4`
- `crystal (< 1.0.0)` required by `tree_template 0.1.0+git.commit.7e24c92208cc99938f3fbd8f5fecda22bcbe3cc3`
- `crystal (~> 0.24, >= 0.24.2)` required by `time_format 0.1.1`
- `crystal (>= 0.34.0, < 2.0.0)` required by `dotenv 1.0.0`
- `crystal (~> 1.0, >= 1.0.0)` required by `markd 0.4.0`
- `crystal (>= 0.35.0)` required by `ameba 0.14.2`
- `crystal (< 1.0.0)` required by `diff 1.1.0`
Failed to resolve dependencies, try updating incompatible shards or use --ignore-crystal-version as a workaround if no update is available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions