feat(aqua): support multiple custom registries#10179
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThis PR introduces multi-registry support for Aqua package management, replacing a single registry URL setting with an ordered array of registries. Configuration schema, core registry resolution logic, deprecation handling, and test coverage are updated throughout. ChangesMulti-Registry Aqua Support
🎯 4 (Complex) | ⏱️ ~45 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR replaces the single
Confidence Score: 5/5Safe to merge; the registry chaining, deprecation migration, and settings plumbing are all logically consistent and backed by thorough unit and e2e tests. The refactor cleanly separates concerns: settings migration lives in set_hidden_configs, registry ordering lives in AquaRegistry::new, and each DownloadedRegistry owns its own tokio OnceCell with no shared-mutable-state hazards. All new code paths (ordered resolution, alias scoping, empty-registry override, env-var CSV parsing) are covered by focused tests. No correctness issues were found. No files require special attention. Important Files Changed
Reviews (5): Last reviewed commit: "feat(aqua): support multiple custom regi..." | Re-trigger Greptile |
2da784a to
f99cbc1
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
f99cbc1 to
d19158f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
d19158f to
6f322c9
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
@coderabbitai review This comment was generated by an AI coding assistant. |
|
This comment was generated by an AI coding assistant. 🧠 Learnings used✅ Action performedReview finished.
|
Summary
aqua.registriesas an ordered array-only setting for downloaded aqua registriesaqua.registry_url;aqua.registriestakes precedence when both are setaqua.registry_urland keep aliases scoped to the registry that defines themTests
MISE_TRUSTED_CONFIG_PATHS="$PWD" mise run render:schemacargo fmt --allgit diff --checkRUSTC_WRAPPER= cargo clippy -p mise -- -D warningsRUSTC_WRAPPER= cargo test -p mise aqua::aqua_registry_wrapper -j1RUSTC_WRAPPER= cargo test -p mise config::settings::tests::test_aqua -j1CARGO_TARGET_DIR=/home/risu/.cache/cargo-target/mise-409845c58888dcc6 MISE_TRUSTED_CONFIG_PATHS="$PWD" mise run test:e2e e2e/cli/test_settings_addNotes
Summary by CodeRabbit
New Features
aqua.registriessetting to configure multiple custom Aqua registries in priority order with automatic fallback to the baked-in registry.aqua.registry_urlremains supported but is now deprecated; existing values automatically migrate to the new setting.Documentation