Revert "fix(aqua): align version resolution logic in list_bin_paths"#5574
BugBot Review
BugBot completed review and found 2 potential issues
Request ID: serverGenReqId_e903b47c-f8b4-47e9-923f-eee12b5f0765
Details
Bug: Version Mismatch Causes Installation Failures
The srcs method, used during installation and by list_bin_paths, now incorrectly uses the original ToolVersion (tv) for determining source file paths. This is inconsistent with the complex version resolution (including tag lookup, v-prefixing, and package-specific prefixes) performed in install_version_ to determine the actual downloaded version. As a result, srcs may look for files using an incorrect version string, leading to failed symlinks during installation or list_bin_paths failing to locate installed binaries.
src/backend/aqua.rs#L710-L711
Lines 710 to 711 in b3f617a
src/backend/aqua.rs#L147-L153
Lines 147 to 153 in b3f617a
src/backend/aqua.rs#L729-L737
Lines 729 to 737 in b3f617a
Bug: Package Resolution Mismatch Causes Incorrect Binary Paths
The list_bin_paths method uses a simplified package resolution, only attempting to match the raw tool version. This contrasts with install_version_, which employs a more complex resolution logic that accounts for version tags, v-prefixes, and package-specific version prefixes. This discrepancy can cause list_bin_paths to resolve to a different package configuration than what was actually installed, resulting in incorrect binary path calculations or a failure to locate installed binaries.
src/backend/aqua.rs#L146-L153
Lines 146 to 153 in b3f617a
BugBot free trial expires on July 22, 2025
You have used $0.00 of your $50.00 spend limit so far. Manage your spend limit in the Cursor dashboard.
Was this report helpful? Give feedback by reacting with 👍 or 👎