Skip to content

fix: license_check failed on flutter pkgs#352

Closed
JohnWeidner wants to merge 1 commit intoVeryGoodOpenSource:mainfrom
JohnWeidner:fix-2970-failed-on-flutter-packages
Closed

fix: license_check failed on flutter pkgs#352
JohnWeidner wants to merge 1 commit intoVeryGoodOpenSource:mainfrom
JohnWeidner:fix-2970-failed-on-flutter-packages

Conversation

@JohnWeidner
Copy link
Copy Markdown

@JohnWeidner JohnWeidner commented Aug 21, 2025

Status

READY

Description

Closes #297

Now allow caller to specify a flutter_version or a dart_sdk version to indicate which dependencies to get. If you don't specify either it will function as before using the "stable" dart_sdk. If both flutter_version and dart_sdk are specified, it will use flutter dependencies but also display a warning message.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@JohnWeidner JohnWeidner requested a review from a team as a code owner August 21, 2025 00:55
@marcossevilla marcossevilla changed the title fix: license_check failed on flutter pkgs (issue 297) fix: license_check failed on flutter pkgs Aug 21, 2025
Copy link
Copy Markdown
Contributor

@matiasleyba matiasleyba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also update the doc's site to reflect the changes

- name: 🎯 Setup Dart
- name: Show warning if conflicting SDK inputs
if: ${{ env.SHOW_DART_FLUTTER_WARNING == 'true' }}
run: echo "::warning::Both 'flutter_version' and 'dart_sdk' were specified. The workflow will proceed with the Flutter SDK setup."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also validate when none were specified right?

@marcossevilla
Copy link
Copy Markdown
Member

hey @JohnWeidner, are you able to apply this change or we can close this PR?

@JohnWeidner
Copy link
Copy Markdown
Author

hey @JohnWeidner, are you able to apply this change or we can close this PR?

@marcossevilla Sorry this has sat dormant for so many months. Let me see what I can do with it.

@JohnWeidner JohnWeidner force-pushed the fix-2970-failed-on-flutter-packages branch from 7186c05 to 229b3d0 Compare March 26, 2026 17:22
Closes VeryGoodOpenSource#297

Allow callers to specify a `flutter_version` or `dart_sdk` to control
which SDK is used for dependency resolution. When `flutter_version` is
provided, the workflow installs Flutter and uses `flutter pub get`.
Otherwise it defaults to the stable Dart SDK with `dart pub get`.

- Add `flutter_version` input to license_check workflow
- Route SDK setup and dependency install based on input
- Warn when both `flutter_version` and `dart_sdk` are specified
- Show notice when neither is specified, suggesting `flutter_version`
  for Flutter projects
- Add CI jobs covering all four input combinations
- Update docs site to document the new input

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JohnWeidner JohnWeidner force-pushed the fix-2970-failed-on-flutter-packages branch from 4b05e5a to cff04ca Compare March 26, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: License check fails on Flutter packages

3 participants