-
Notifications
You must be signed in to change notification settings - Fork 228
fix!: license check should exit 0 when no dependencies found #1261
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
fix!: license check should exit 0 when no dependencies found #1261
Conversation
WalkthroughThe changes modify the license check command to treat the absence of hosted dependencies as a non-error condition. Logging behavior is adjusted from error logging to informational logging, and the exit code is updated from an error code to a success code. In addition, the corresponding tests are updated to reflect the new logging order and expected output, and minor formatting improvements in string concatenation are applied in another test file. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant C as PackagesCheckLicensesCommand
participant L as Logger
participant E as ExitCode
U->>C: Run license check command
C->>C: Check for hosted dependencies
alt No hosted dependencies found
C->>L: Log info message
C->>E: Return success code
else Dependencies detected
C->>L: Log appropriate message
C->>E: Return corresponding exit code
end
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms (15)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
f5f5d42 to
5acb9d2
Compare
|
FYI @wolfenrain @alestiago @erickzanardo e2e tests are failing because the templates need to be updated to fix the synthetic generation deprecation warning for l10n (https://docs.flutter.dev/release/breaking-changes/flutter-generate-i10n-source) |
Yea that was already on my radar 🫡 |
|
Since #1286 the CI should now be all green. There were a few merge conflicts in two test files, I gave a first attempt at quickly resolving them where I could, I'll keep an eye on the pipeline. |
…dOpenSource#1261) * fix: license check should exit 0 when no dependencies found * chore: remove ignore: no_adjacent_strings_in_list --------- Co-authored-by: Alejandro Santiago <[email protected]>
Status
READY
Description
Type of Change
Summary by CodeRabbit