yaml / yamlscript

Programming in YAML
MIT License
362 stars 31 forks source link

asdf-yamlscript plugin #124

Closed FeryET closed 3 weeks ago

FeryET commented 3 months ago

Hello.

I have implemented an asdf plugin for yamlscript, since I use the asdf-vm heavily to keep track of my runtimes etc, and yamlscript seems like a very promising project to me.

Feel free to comment on this.

https://github.com/FeryET/asdf-yamlscript

ingydotnet commented 3 months ago

Thanks for doing this. I'm new to asdf but I got it installed and installed ys.

I see that it installs ys and libyamlscript.so under ~/.asdf/shims/.

I'll consider updating the YS language bindings for to look for libyamlscript in that directory. This would probably be a bigger win if asdf was a trusted solution for installing Python, Rust, Ruby etc modules. Currently for any language binding, you need to install the binding module and libyamlscript separately. With asdf you might be able to do it in one command.

I was a bit surprised that I needed to run both:

asdf install yamlscript latest
asdf global yamlscript latest

to get the ys command to work. But that's not your fault unless you are a core asdf dev.

I was also surprised that asdf list-all yamlscript listed all yamlscript repo tags instead of all yamlscript repo releases. Non-release tags won't install.

If there are things you'd like to add to yamlscript regarding asdf let me know. Or make a PR.

Thanks again.

ingydotnet commented 3 months ago

Sorry. I was trying to ask you:

FeryET commented 3 months ago

Sorry. I was trying to ask you:

* Is asdf a good way to install a Python module along with libyamlscript?

  * Also for Clojure, Java, Perl, Raku, Ruby and Rust (many more to come)

* Can you make `list-all` uses releases instead of tags?

* Why does asdf require me to run the global command?

  * Especially after I've installed yamlscript the first time and there is no possible ambiguity.

Sorry for the late reply. I have to preface that I don't use asdf, but mise(https://github.com/jdx/mise) which is an asdf compatible tool that is much faster.

In mise I simply run: mise use -g <tool>@<version> for first time installation if the tool is in the list of asdf-plugins.

FeryET commented 1 month ago
* Can you make `list-all` uses releases instead of tags?

So after a period of being utterly busy, I had the time to check this issue out, and the way the current list-all works is by getting the tags that start with 'v', which I think is your release tags as of now too.

ingydotnet commented 3 weeks ago

Closing this as I assume nothing more is needed from us.