idris-community / inigo

Inigo: A Package Manager for Idris2
https://inigo.pm
MIT License
60 stars 7 forks source link

"Can't find package idris2" on make bootstrap #18

Closed joelberkeley closed 3 years ago

joelberkeley commented 3 years ago

I cloned the repo and followed the installation instructions, but I get

$ make bootstrap
mkdir -p build
(cd Base/Color && idris2 --build Bootstrap.ipkg --build-dir ../../build)
Uncaught error: Can't find package idris2 (any)
make: *** [Makefile:12: bootstrap] Error 1

even though I have idris2 installed (if I run idris2 in the terminal I get the REPL)

Z-snails commented 3 years ago

You need to install the idris2api along with the idris2 compiler itself, here's how https://github.com/idris-lang/Idris2/blob/master/INSTALL.md#7-optional-installing-the-idris-2-api

You can add that to the docs if you want, otherwise I will when I next get round to coding.

joelberkeley commented 3 years ago

ok, thanks. Will that always be the case or will plain Idris do in the future?

Z-snails commented 3 years ago

Unless there's a change to idris2 itself, I believe so, because Inigo needs some functions and data types from the idris2 source code. It's good to rely on idris2api so if there's a change, we have to keep up with it. I might try getting downloads to work with github CI, so you might be able to use that in future