Remove the use-flutter configuration#284
Conversation
Always set up the flutter SDK and use `flutter pub publish`, even for non-flutter Dart packages. The `flutter` command can publish non-flutter packages so no behavior changes are expected during the publish action. Directly remove the argument, configuration, and all references immediately. There is no plan for a deprecation/migration phase since this only impacts CI, and the fix is trivial.
PR HealthBreaking changes ✔️Details
Changelog Entry ✔️Details
Changes to files need to be accounted for in their respective changelogs. Coverage ✔️Details
This check for test coverage is informational (issues shown here will not fail the PR). API leaks ✔️DetailsThe following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.
License Headers ✔️Details
All source files should start with a license header. Package publish validation ✔️Details
Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. |
| sdk: ${{ inputs.sdk }} | ||
|
|
||
| - name: Install firehose | ||
| run: dart pub global activate firehose |
There was a problem hiding this comment.
@devoncarew @mosuem Have we made breaking changes to firehose CLI before? How do we handle cases where a repo could be using an older publish.yaml file than what dart pub global activate firehose installs?
There was a problem hiding this comment.
We recommend using @main, so as long as we publish shortly after landing this on the main branch, I think it should work out for most use cases.
Is it OK if we break configuration that are pinning the publish workflow?
There was a problem hiding this comment.
I don't believe we've made breaking CLI changes before.
Repos generally always reference the .github/workflows/publish.yaml script at head (i.e., uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main). That then globally activates firehose - that latest published version. We update the various publish.yaml clients to remove any use of use-flutter, but I don't think we'll have any other work to do.
There was a problem hiding this comment.
I think breaks are ok; we should have some good text for the changelog, and likely rev. to a new 'major' version to help call out the change.
The `dart` command and SDK do come with the `flutter` SDK, so it should be OK to use the flutter SDK for health checks as well.
Package publishing
Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. |
This will allow backwards compatibility for the few files which are passing it, and can be removed after they are cleaned up.
| }; | ||
|
|
||
| Future<HealthCheckResult> validateCheck() async { | ||
| //TODO: Add Flutter support for PR health checks |
There was a problem hiding this comment.
Most of the uses of use-flutter: were for health checks - and the health check firehose action ignores that.
I think I broke the |
|
Oh, now I see what's happening. This PR make @kevmoo - we still don't have a general "add extra setup actions" feature in mono_repo do we? |
|
@natebosch – I don't think so. It's been soooo long |
|
@natebosch did you test this by flipping some repo using auto-publishing and PR health checks to |
Always set up the flutter SDK and use
flutter pub publish, even fornon-flutter Dart packages. The
fluttercommand can publish non-flutterpackages so no behavior changes are expected during the publish action.
Directly remove the argument, configuration, and all references
immediately. There is no plan for a deprecation/migration phase since
this only impacts CI, and the fix is trivial.