whyrusleeping / gx

A package management tool
MIT License
1.88k stars 111 forks source link

Using gx for other languages than go #237

Open porky11 opened 5 years ago

porky11 commented 5 years ago

I'm currently using the pretty new programming language scopes, which doesn't have a package manager yet, and think about writing a package manager on top of gx (or just using gx directly).

The problem I have is, by default packages are installed into the vendor directory. I'd like to install all my packages to path/to/lib/scopes/, so I probably need to use the hook install-path. But I don't find documentation how to use hooks. Hooks seem to be available for helper commands like gx-go.

So do I need to write my own gx-scopes command? Is there some documentation how to do that?

IcedQuinn commented 2 years ago

You do have to write a gx-scopes command and it will call that if a particular project says it's using the scopes language. Similarly if you said a project was using nim it would try to run gx-nim at certain points.

Its similar to how parts of Git works.