-
Notifications
You must be signed in to change notification settings - Fork 9
fix: fix project layout detection #308
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
Review Summary by QodoFix Cargo single crate layout detection logic
WalkthroughsDescription• Fix project layout detection for single crate Cargo projects • Handle case where cargo metadata includes root crate as workspace member • Correctly identify single crate projects despite workspace member presence Diagramflowchart LR
A["Cargo Metadata"] --> B["Check Root Crate & Workspace"]
B --> C["Single Member Equals Root?"]
C -->|Yes| D["Return SINGLE_CRATE"]
C -->|No| E["Check Other Conditions"]
E --> F["Return Appropriate Layout"]
File Changes1. src/main/java/io/github/guacsec/trustifyda/providers/CargoProvider.java
|
Code Review by Qodo
1. Missing workspace_members==[root] test
|
ruromero
left a comment
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 AI assumption is wrong.
The enum matches the implementation:
SINGLE_CRATE // only [package]
WORKSPACE_VIRTUAL // only [workspace]
WORKSPACE_WITH_ROOT_CRATE // both
Fixes: #307
fix: fix project layout detection