-
-
Notifications
You must be signed in to change notification settings - Fork 625
Revert "fix(aqua): improve warnings for packages without repo_owner and repo_name (#5644)" #5668
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
Conversation
There was a problem hiding this 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 commit ad36539, which previously improved warnings for packages without repo_owner and repo_name. The revert changes error handling in the aqua backend by removing error propagation improvements and reverting the warning message format.
- Reverts error handling changes in the
_list_remote_versions
method - Removes package validation logic for assets and error messages
- Changes error handling from
bail!
back towarn!
for missing repository information
Comments suppressed due to low confidence (1)
src/backend/aqua.rs:63
- The variable name 'v' is ambiguous and unclear. Consider using a more descriptive name like 'version' for better code readability.
for (v, tag) in version_tags.iter() {
@@ -58,19 +58,15 @@ impl Backend for AquaBackend { | |||
} | |||
|
|||
async fn _list_remote_versions(&self, _config: &Arc<Config>) -> Result<Vec<String>> { | |||
let version_tags = self.get_version_tags().await; | |||
let version_tags = self.get_version_tags().await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The revert removes error handling that was previously added. The ?
operator will propagate errors up the call stack, but the previous version had explicit error handling with a warning message. Consider whether silent error propagation is the intended behavior.
let version_tags = self.get_version_tags().await?; | |
let version_tags = match self.get_version_tags().await { | |
Ok(tags) => tags, | |
Err(e) => { | |
eprintln!("Warning: Failed to fetch version tags: {}", e); | |
return Ok(Vec::new()); | |
} | |
}; |
Copilot uses AI. Check for mistakes.
"aqua package {} does not have repo_owner and/or repo_name.", | ||
self.id | ||
); | ||
warn!("no aqua registry found for {}", self.ba()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reverted warning message 'no aqua registry found for {}' is less specific than the previous error message that explicitly mentioned missing 'repo_owner and/or repo_name'. This makes debugging more difficult for users.
warn!("no aqua registry found for {}", self.ba()); | |
warn!( | |
"no aqua registry found for {}: missing {}", | |
self.ba(), | |
if pkg.repo_owner.is_empty() && pkg.repo_name.is_empty() { | |
"repo_owner and repo_name" | |
} else if pkg.repo_owner.is_empty() { | |
"repo_owner" | |
} else { | |
"repo_name" | |
} | |
); |
Copilot uses AI. Check for mistakes.
@risu729 this caused mise-versions to get a bunch of versions with a "v" prefix:
|
it's a weird bug I'm not sure is worth adding an e2e test around or not, I think we probably should since the "v" prefixing stuff has always caused issues. Maybe check to make sure all "action-validator" versions start with a digit? If you look at the test-tools job in the latest release you can see this is failing on many tools |
Hyperfine Performance
|
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
mise-2025.7.11 x -- echo |
17.8 ± 0.2 | 17.4 | 20.7 | 1.00 |
mise x -- echo |
17.9 ± 0.3 | 17.4 | 21.3 | 1.01 ± 0.02 |
mise env
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
mise-2025.7.11 env |
17.2 ± 0.2 | 16.8 | 18.0 | 1.00 |
mise env |
17.5 ± 0.6 | 16.8 | 26.8 | 1.02 ± 0.04 |
mise hook-env
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
mise-2025.7.11 hook-env |
17.0 ± 0.2 | 16.6 | 17.9 | 1.00 |
mise hook-env |
17.1 ± 0.3 | 16.7 | 20.7 | 1.01 ± 0.02 |
mise ls
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
mise-2025.7.11 ls |
15.1 ± 0.2 | 14.7 | 16.4 | 1.00 |
mise ls |
15.1 ± 0.2 | 14.7 | 16.1 | 1.00 ± 0.02 |
xtasks/test/perf
Command | mise-2025.7.11 | mise | Variance |
---|---|---|---|
install (uncached) | 761ms | -30% | |
install (cached) | 125ms | 124ms | +0% |
ls (uncached) | 694ms | 694ms | +0% |
ls (cached) | 78ms | 78ms | +0% |
bin-paths (uncached) | 696ms | -29% | |
bin-paths (cached) | 64ms | 66ms | -3% |
task-ls (uncached) | 3158ms | -11% | |
task-ls (cached) | 261ms | 262ms | +0% |
### 🐛 Bug Fixes - **(npm)** run bun in install_path instead of using --cwd flag of bun by [@risu729](https://github.com/risu729) in [#5656](#5656) - **(nushell)** fix `get -i` deprecation by [@JoaquinTrinanes](https://github.com/JoaquinTrinanes) in [#5666](#5666) ###◀️ Revert - Revert "fix(aqua): improve warnings for packages without repo_owner and repo_name " by [@jdx](https://github.com/jdx) in [#5668](#5668) ### Chore - update deps by [@risu729](https://github.com/risu729) in [#5657](#5657) - update usage by [@risu729](https://github.com/risu729) in [#5661](#5661) ### New Contributors - @JoaquinTrinanes made their first contribution in [#5666](#5666)
My apologies for the regression again. |
This reverts commit ad36539.