-
Notifications
You must be signed in to change notification settings - Fork 20
while adding, show a warning only if there is a .pdsc too deep but al… #566
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
…so one in a correct level
|
Diff Coverage: The code coverage on the diff in this pull request is 84.7%. Total Coverage: This PR will increase coverage by 0.02%. File Coverage Changes
🛟 Help
|
jkrech
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.
LGTM
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.
Pull Request Overview
This PR improves the validation logic for PDSC files when adding CMSIS packs. The change enhances the pack validation process to show warnings instead of errors when a pack contains a valid PDSC file at the correct level alongside additional PDSC files that are too deep in the folder structure.
- Refactored the validation loop to collect all valid PDSC files before making decisions
- Added logic to show warnings for additional deep PDSC files when valid ones exist at correct levels
- Introduced new error types for multiple PDSC files and wrong PDSC names
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| cmd/installer/pack.go | Restructured pack validation logic to handle PDSC files more intelligently with warning/error prioritization |
| cmd/errors/errors.go | Added two new error types for multiple PDSC files and wrong PDSC file names |
Comments suppressed due to low confidence (1)
cmd/installer/pack.go:277
- [nitpick] The variable name
fileis too generic and shadows the loop variable from the earlier iteration. Consider renaming it topdscFileorvalidPdscFilefor clarity.
file := validPdscFiles[0]
…so one in a correct level
Fixes
Changes
Checklist