New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: package.install provider: luarocks #311
Comments
I have a PR opened for this. If you don't mind testing it and letting me know if that is sufficient! Sorry for not getting around to this a month after you filed this issue. |
@martintc no problemo. I'm a filthy frontend developer peasant, so I'm not familiar with the correct goats i need to sacrifice in order to test out this branch/pr. Any pointers? |
Should be able to clone the repo. I usually clone the main github one and add my repo as a separate remote with |
Talking with @icepuma, implementing language specific package managers is a road we don't really want to go down and want to keep the scope of package providers limited to system wide (i.e. win-get, scoop, brew, apt, pkg, dnf, etc). This can lead us down a slippery slope of writing package providers for cargo, npm, and as more languages get created, they all seem to be employing their own package managers. We think the best solution for using package managers associated with languages is best handled right now via |
OK. I think we can work around this. @airtonix, sorry First, we can support @martintc Great initiative adding a Comtrya does something really well: atoms. We provide building blocks to execute any command on any system. Presently, we support actions (in-core) to abstract away the individual steps and details of performing common actions. So why don't we provide a higher level abstraction for end-users? Please excuse the name, it needs thought about properly. compounds:
- cargo:
plan: ls ${CARGO_HOME}/.bin
single: cargo install ${_1}
list: cargo install ${_N}
- luarocks:
plan: luarocks list | rg ${_1}
single: luarocks install ${_1}
list: for rock in ${_N}; do luarocks install ${rock}; done These could be defined by individual users, or shared via some Comtrya Hub. This would enable: - action: compound.luarocks
where: os.name == "linux"
name: power_widget
- action: compound.luarocks
where: os.name == "linux"
name: lgi or - action: compound.luarocks
where: os.name == "linux"
list:
- path
- luafilesystem
- power_widget
- lgi
- lcpz/awesome-freedesktop
- awesome-autostart
- lyaml |
In case you don't see it on the discord. Last night I was playing around with a similar/exact idea, my spit balling is in the comtrya channel. Allow users to specify modules as an abstraction in yaml and behind the scenes, comtrya resolves it via command.run A sample of what I had in mind. # modules.yaml
define_module:
name: systemd
define_actions:
- name: start
parameters:
- service_name
command: systemctl start ${service_name}
sudo: true
- name: reload
command: systemctl daemon-reload
sudo: true
- name: enable
parameters:
- service_name
command: systemctl enable ${service_name}
sudo: true
# systemd.yaml
actions:
- action: systemd.reload
- action: systemd.start
service_name:
- nginx
- sshd
- action: systemd.enable
service_name:
- nginx
- sshd
- firewalld With a way of getting modules via git. |
Description
currently to get my awesomewm setup i need to install a bunch of lua packages. and comtrya doesn't seem to want to let me do this:
so i have to do this:
it'd be great if all I had to do was this:
Additional information
Add more context which didn't fit in the fields above.
The text was updated successfully, but these errors were encountered: