Skip to content

fix(aqua): parse templates in version_filter#5341

Merged
jdx merged 1 commit into
jdx:mainfrom
risu729:parse-version-filter-template
Jun 13, 2025
Merged

fix(aqua): parse templates in version_filter#5341
jdx merged 1 commit into
jdx:mainfrom
risu729:parse-version-filter-template

Conversation

@risu729

@risu729 risu729 commented Jun 13, 2025

Copy link
Copy Markdown
Contributor

aqua:docker/cli can be installed, but it caused warnings.
#4832

mise WARN  [aqua:docker/cli] aqua version filter error: Invalid operands for operator contains

This is because the registry uses Version in its version_filter.
https://github.com/aquaproj/aqua-registry/blob/8f3a2ae02b5b56a9583ddb1c9ee9739ceff19f9e/pkgs/docker/cli/rootless/registry.yaml

This PR resolves the issue by parsing aqua templates in version_filter.

@risu729 risu729 force-pushed the parse-version-filter-template branch from fd50c1b to c0931d2 Compare June 13, 2025 16:46
@jdx

jdx commented Jun 13, 2025

Copy link
Copy Markdown
Owner

nice that this actually makes it a lot simpler

@jdx jdx merged commit 809cfd4 into jdx:main Jun 13, 2025
17 checks passed
@risu729 risu729 deleted the parse-version-filter-template branch June 13, 2025 17:10
@risu729 risu729 restored the parse-version-filter-template branch June 13, 2025 18:13
@risu729 risu729 deleted the parse-version-filter-template branch June 13, 2025 18:13
risu729 added a commit to risu729/mise that referenced this pull request Jun 13, 2025
jdx pushed a commit that referenced this pull request Jun 13, 2025
### 🚀 Features

- support matching_regex from the ubi backend by
[@yjoer](https://github.com/yjoer) in
[#5320](#5320)

### 🐛 Bug Fixes

- **(aqua)** parse templates in version_filter by
[@risu729](https://github.com/risu729) in
[#5341](#5341)
- **(registry)** use extract_all for docker-slim by
[@risu729](https://github.com/risu729) in
[#5342](#5342)

### 🚜 Refactor

- **(getting-started)** update powershell profile instructions by
[@Armaldio](https://github.com/Armaldio) in
[#5340](#5340)

### 📦️ Dependency Updates

- update docker/build-push-action digest to 2634353 by
[@renovate[bot]](https://github.com/renovate[bot]) in
[#5338](#5338)
- update jdx/mise-action digest to 13abe50 by
[@renovate[bot]](https://github.com/renovate[bot]) in
[#5339](#5339)

### New Contributors

- @yjoer made their first contribution in
[#5320](#5320)
jdx pushed a commit that referenced this pull request Jun 13, 2025
Reverts #5341

My apologies, I didn't check well and misunderstood that it fixed the
issue. However, the warnings were just suppressed because there was a
versions cache.
@risu729

risu729 commented Jun 15, 2025

Copy link
Copy Markdown
Contributor Author

This was caused by the wrong operator precedence between contains and or used in version_filter, not the use of Version.
I fixed it in jdx/expr.rs#16.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants