Skip to content

Conversation

JohnWeidner
Copy link

@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

…r to specify a flutter_version or a dart_sdk version to indicate which dependencies to get.
@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
uses: actions/checkout@v5

- name: Check for conflicting SDK inputs
if: ${{ inputs.flutter_version != '' && inputs.dart_sdk != '' }}
Copy link
Member

Choose a reason for hiding this comment

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

can we create a temp env variable instead so we don't repeat this code in every conditional?

Copy link
Author

@JohnWeidner JohnWeidner Aug 21, 2025

Choose a reason for hiding this comment

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

@marcossevilla I'm new to writing yaml files. Please show me the change with a temp env you are suggesting. Thanks.

Copy link
Member

@marcossevilla marcossevilla Aug 22, 2025

Choose a reason for hiding this comment

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

sure! you can check this part of the GitHub docs where you can add it as env variable with the same expression you already have

Copy link
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
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?

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