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

Add Our Own Regex FilterOut in latest Option or Add a Support for Regex Pattern #1875

Closed
nizarakbarm opened this issue Feb 3, 2025 · 0 comments · Fixed by #1996
Closed

Comments

@nizarakbarm
Copy link

Is your feature request related to a problem? Please describe

I found out that the latest option in version 0.16.0 and 0.15.0 behave differently.

In asdf 0.15.0, the latest option correctly give the latest version, for example:

[nizarakb@kronos ~]$ asdf --version
v0.15.0-31e8c93
[nizarakb@kronos ~]$ asdf latest python
3.13.1t

But in version 0.16.0 the latest option behave differently and end up not give the real last version:

devnull@devnullnothing:~$ asdf --version
asdf version v0.16.0
devnull@devnullnothing:~$ asdf latest python
stackless-3.7.5

If i check the 0.15.0, versions.bash script always using:

  DEFAULT_QUERY="[0-9]"

but at the 0.16.0, it is not using the same DEFAULT_QUERY so it will result in stackless-3.7.5.

If it is intended to not use default query, i think it is needed for a feature to add our own FilterOut regeular expression or add our own regex pattern query.

Describe the proposed solution

Adding an option for regex filter out or regex pattern query

Describe similar asdf features and why they are not sufficient

asdf latest always return not the real latest version

Describe other workarounds you've considered

I am not a go programmer, but i can only inform that there is a need for default query regex or an option to add default query regex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant