Handle conditional with JSON

Hi guys, as you know I am working on my new package manager for Linux.

I am facing recently an issue. Normally there are 2 files for a package. One crystal file that contain crystal code to run when running the installation process. It is called by running the crystal interpreter. And there is a JSON file that describe the package.

But in some case, the dependencies described in the JSON file can depend of external condition.

For example a package can depend of Glibc OR MUSL libc, depend of the user choice. How can I handle this ? It a problem I didn’t expect when I started to think of my program structure. :x

`ldd --version`

^ i think this is a normal’ish detection path. you can use a regex then in crystal to scrub for GLIBC or MUSL to determine which one it is.