Skip to content
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

[feat]: Possibility to search OS and Architecture #15

Open
AntoinePrv opened this issue Jul 18, 2022 · 1 comment
Open

[feat]: Possibility to search OS and Architecture #15

AntoinePrv opened this issue Jul 18, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@AntoinePrv
Copy link

If the feature request is for a plugin or theme, specify it here.

zinit-annex-readurl

If the feature solves a problem you have, specify it here.

The %VERSION% token allow to search for latest version with zinit-annex-readurl.
I wonder if it would be possible to automatically choose operating system and architecture among the links the way zinit does it for Github releases.

Describe the proposed feature.

Adding %OS% and %ARCHITECTURE% tokens to zinit-annex-readurl to pick the correct link when downloading binaries.
I'm not sure how the matching could safely made (e.g. for MacOS, we have OSX, MacOS, Darwin...)

Describe alternatives you've considered

Doing the matching in user configuration files using uname. It's working solution but a bit verbose, especially when different URLs don't use the same naming conventions.

Additional context

No response

Related Issues

No response

@vladdoster
Copy link
Member

This is something I've been wanting, too. Especially since gh-r correctly chooses system specific 99% of the time, so it would be nice to have functionality in readurl so it's just as easy to use.

Addressing your macOS concern, I'd just pull in the darwin gh-r logic.

@vladdoster vladdoster added the enhancement New feature or request label Jul 25, 2022
@vladdoster vladdoster self-assigned this Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants