alexherbo2 / kakoune.cr

A command-line tool for Kakoune
https://kakoune.org
The Unlicense
54 stars 11 forks source link

Crystal dependency error #13

Closed sucrecacao closed 3 years ago

sucrecacao commented 3 years ago

I updated crystal to the latest version ( using crystal website instruction for ubuntu https://crystal-lang.org/install/on_ubuntu/)

$ crystal -v
Crystal 1.1.0-dev [e7b46c407] (2021-03-30)

But when trying to update kcr I got the following error:

$ kakoune.cr git:(master) make install
make: llvm-config: Command not found
shards build --release --ignore-crystal-version
Resolving dependencies
Fetching https://github.com/alexherbo2/fifo.cr.git
Fetching https://github.com/alexherbo2/rsub.cr.git
Unable to satisfy the following requirements:

- `crystal (< 1.0.0)` required by `fifo 0.1.0+git.commit.a5df8025fd3ab182ae2511d525f708cbbe0ed43a`
- `crystal (~> 1.0, >= 1.0.0)` required by `rsub 0.1.0+git.commit.43c6b9836ee281328bccfdf8c669bab26448e3b3`
Failed to resolve dependencies
make: *** [Makefile:12: build] Error 1
alexherbo2 commented 3 years ago

Try make clean to clean the lock file.

sucrecacao commented 3 years ago

Worked! Thanks

But I encountered a new issue:

Error target kcr failed to compile:
Error: Invalid option: --ignore-crystal-version
sucrecacao commented 3 years ago

I just removed the --ignore-crystal-version and it worked, I hope it is fine.

I got so lost in the dependency spiral that I don't even remember why I had to upgrade crystal xD