-
Notifications
You must be signed in to change notification settings - Fork 80
fix: license_check failed on flutter pkgs #352
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
base: main
Are you sure you want to change the base?
fix: license_check failed on flutter pkgs #352
Conversation
…r to specify a flutter_version or a dart_sdk version to indicate which dependencies to get.
.github/workflows/license_check.yml
Outdated
uses: actions/checkout@v5 | ||
|
||
- name: Check for conflicting SDK inputs | ||
if: ${{ inputs.flutter_version != '' && inputs.dart_sdk != '' }} |
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.
can we create a temp env variable instead so we don't repeat this code in every conditional?
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.
@marcossevilla I'm new to writing yaml files. Please show me the change with a temp env you are suggesting. Thanks.
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.
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
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.
We should also update the doc's site to reflect the changes
…value is specified or not. But that requires us to use a step output variable to default to "stable" when no dart_sdk is specified.
- 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." |
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.
I think we should also validate when none were specified right?
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