Skip to content

Conversation

risu729
Copy link
Contributor

@risu729 risu729 commented Aug 13, 2025

Reapplies #5644. Reverts #5668

@Copilot Copilot AI review requested due to automatic review settings August 13, 2025 09:43
Copilot

This comment was marked as outdated.

@jdx
Copy link
Owner

jdx commented Aug 13, 2025

bugbot run

}
}
Err(e) => {
warn!("Remote versions cannot be fetched: {}", e);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unfiltered Version Listing Causes Installation Issues

The _list_remote_versions function in src/backend/aqua.rs now returns both normalized versions and raw tags without filtering for asset availability. This introduces duplicate entries and lists versions that are not installable, leading to misleading ls-remote output and potential installation failures if a non-installable version is selected.

Fix in Cursor Fix in Web

@risu729 risu729 requested a review from Copilot August 13, 2025 10:18
@risu729 risu729 marked this pull request as draft August 13, 2025 10:19
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts changes made in #5668 and improves error handling for aqua packages that lack repo_owner and repo_name fields. The changes focus on better warning messages and handling version fetching failures more gracefully.

  • Reverts previous error handling logic around version tag fetching
  • Changes warning to a bail error for packages without repo metadata
  • Simplifies version listing by avoiding complex package validation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

.await
.ok()
.into_iter()
.flatten()
Copy link
Preview

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using .ok() to silently ignore errors here means that version resolution failures won't be logged or handled, making debugging difficult when version fetching fails.

Copilot uses AI. Check for mistakes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a fallback so it's safe.

@risu729 risu729 force-pushed the revert-5668-revert-aqua branch from ac967fd to ce881ad Compare August 13, 2025 11:06
@risu729 risu729 requested a review from Copilot August 13, 2025 11:08
@risu729 risu729 marked this pull request as ready for review August 13, 2025 11:08
@jdx jdx enabled auto-merge (squash) August 13, 2025 11:13
@jdx jdx merged commit 4674122 into jdx:main Aug 13, 2025
16 of 17 checks passed
@risu729 risu729 deleted the revert-5668-revert-aqua branch August 13, 2025 11:22
jdx pushed a commit that referenced this pull request Aug 14, 2025
### 📦 Registry

- enable kubecolor test by [@risu729](https://github.com/risu729) in
[#6008](#6008)
- fix os specific backends for usage by
[@risu729](https://github.com/risu729) in
[#6007](#6007)
- use aqua backend for restish by [@risu729](https://github.com/risu729)
in [#5986](#5986)
- add cfssljson
([aqua:cloudflare/cfssl/cfssljson](https://github.com/cloudflare/cfssl/cfssljson))
by [@disintegrator](https://github.com/disintegrator) in
[#6013](#6013)
- add claude-squad
([aqua:smtg-ai/claude-squad](https://github.com/smtg-ai/claude-squad))
by [@TyceHerrman](https://github.com/TyceHerrman) in
[#5894](#5894)

### 🚀 Features

- **(aqua)** make bin paths executable by
[@risu729](https://github.com/risu729) in
[#6010](#6010)
- added header bar during `mise install` by
[@jdx](https://github.com/jdx) in
[#6022](#6022)

### 🐛 Bug Fixes

- **(aqua)** improve warnings for packages without repo_owner and
repo_name (2nd attempt) by [@risu729](https://github.com/risu729) in
[#6009](#6009)
- version prefix detection by [@risu729](https://github.com/risu729) in
[#5943](#5943)
- respect MISE_DEFAULT_CONFIG_FILENAME by
[@risu729](https://github.com/risu729) in
[#5899](#5899)

### New Contributors

- @disintegrator made their first contribution in
[#6013](#6013)
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