Create detection logic package for development dependencies#122
Merged
Conversation
Co-authored-by: josecelano <58816+josecelano@users.noreply.github.com>
…tion Co-authored-by: josecelano <58816+josecelano@users.noreply.github.com>
Co-authored-by: josecelano <58816+josecelano@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create detection logic package for dependencies
Create detection logic package for development dependencies
Nov 3, 2025
josecelano
requested changes
Nov 3, 2025
josecelano
left a comment
Member
There was a problem hiding this comment.
@copilot the linting workflow has failed:
2025-11-03T21:24:11.172995Z INFO clippy: Running Rust Clippy linter...
error: variables can be used directly in the `format!` string
--> packages/dependency-installer/examples/check_dependencies.rs:39:13
|
39 | eprintln!("Error checking dependencies: {}", e);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D clippy::pedantic`
= help: to override `-D clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
39 - eprintln!("Error checking dependencies: {}", e);
39 + eprintln!("Error checking dependencies: {e}");
|
error: could not compile `torrust-dependency-installer` (example "check_dependencies") due to 1 previous error
2025-11-03T21:24:41.967973Z ERROR clippy: Clippy linting failed. Please fix the issues above.
Co-authored-by: josecelano <58816+josecelano@users.noreply.github.com>
Contributor
Author
- Updated all 22 test names from test_* to it_should_* format - Aligns with project testing conventions in docs/contributing/testing/unit-testing.md - All tests pass (24 total: 22 unit + 2 doc tests) - All linters pass
Member
Test Naming Convention UpdateI've made a small refinement to align the tests with our project conventions: Change: Renamed all 22 test functions from Examples:
Verification:
The implementation is ready to merge once CI workflows complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create Detection Logic Package
Implementing detection logic for development dependencies (cargo-machete, OpenTofu, Ansible, LXD) following the linting package pattern.
Implementation Plan
packages/dependency-installer/src/detector/mod.rssrc/errors.rssrc/command.rssrc/detector/cargo_machete.rssrc/detector/opentofu.rssrc/detector/ansible.rssrc/detector/lxd.rssrc/manager.rssrc/lib.rswhichcommand usageSummary
Successfully created the
packages/dependency-installerpackage with:name()andis_installed()methodscheck_all()andget_detector()methodscommand_exists,execute_command)All linters pass, all tests pass, workspace builds successfully, and the package follows the linting package pattern.
Security Summary
No security vulnerabilities identified. The package performs read-only operations:
whichcommand to check for tool existenceNext Steps
This completes Phase 1 of Issue #114. The next phases will add:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.