fix(spm): classify artifact bundle lock options#9986
Conversation
Greptile SummaryThis PR classifies SPM backend options into two categories — lock-identity options (
Confidence Score: 5/5Safe to merge; the changes are well-scoped refactoring with comprehensive tests, and no correctness regressions were found. The refactoring correctly encapsulates platform-aware option lookups in SpmOptions, the lockfile_options implementation uses target-scoped lookups without current-host fallback, and all callers are updated consistently. The one gap — no diagnostic output when an invalid artifactbundle value is silently omitted from the lockfile — is a minor quality concern that does not affect runtime correctness since the install path still bails on the same invalid value. src/backend/spm.rs — the Err arm in lockfile_options Important Files Changed
Reviews (3): Last reviewed commit: "fix(spm): avoid host fallback for target..." | Re-trigger Greptile |
There was a problem hiding this comment.
Code Review
This pull request introduces the SpmOptions struct to handle SPM-specific backend configurations and implements the resolve_lockfile_options method for SPMBackend. It refactors the codebase to utilize this new helper for retrieving settings like provider, API URL, and artifact bundle modes, while also adding comprehensive unit tests. Review feedback recommends extending SpmOptions to support platform-specific overrides using BackendOptions helpers and updating the lockfile_options signature to accept a PlatformTarget for improved cross-platform locking accuracy.
|
CI note: This comment was generated by an AI coding assistant. |
|
This PR has had failing checks for more than 7 days. Feel free to reopen or create a new PR if you'd like to continue working on this. |
Summary
filter_binsout of lock identity while preserving it as an install/layout optionStacked on #9959. Target branch remains
main.Verification
cargo fmt --checkcargo test options_include