idris-lang / Idris2

A purely functional programming language with first class types
https://idris-lang.org/
Other
2.49k stars 373 forks source link

Commandline option to specify which ipkg file to load #2524

Open iacore opened 2 years ago

iacore commented 2 years ago

Summary

Sometimes there are two or more ipkg files in a directory. --find-ipkg only load the first file it finds, but what if you want to use another ipkg file?

Technical implementation

Add a new option (maybe --ipkg) or make -p load package from source if "package name" ends in .ipkg.

Alternatives considered

Additional Remarks

I think a rewrite for package management in necessary. Currently, idris2 just find package in a centralized location. There isn't any way to use a library in development (like pip install -e .).

There are way too many stuff named findipkg in source code.

FindIPKG in src/Idris/CommandLine.idr Core.Option: findipkg

gallais commented 2 years ago

Currently, idris2 just find package in a centralized location. There isn't any way to use a library in development

You can install packages locally in the depends/ directory.