fleetlint Policy for a fleet of repositories
v0.11 (latest)
Getting started

release/api-compatibility/flutter

A library checks its API against the previous release

Implements release/api-compatibility for flutter.

Severityinfo
Tiers1
Stacksflutter
Scoperoot
Kindoutcome
Sourcelibrary v0.8.0
Selected byfleetlint-recommended@v0.8.0

Requirement

A Dart or Flutter package that is published (no publish_to: none) runs dart_apitool against the previous release.

Why

A breaking change in a minor release is found by every user at once; the check finds it before the tag.

Applies when

file("pubspec.yaml") && scan("pubspec.yaml", r'^publish_to:\s*\S*none').size() == 0 && exists("lib/*.dart")

Fix

Run dart_apitool diff --old pub://<package>/<previous> --new . in the release workflow.

Agent instruction (from release/api-compatibility): Add the stack’s API compatibility tool to the release workflow, comparing against the latest tag; on a breaking change bump the major version instead of silencing the tool.

A finding that names no file points at the first workflow a tag push starts, or .github/workflows/release.yml when there is none.

Sources


Generated by fleetlint docs from catalog v0.8.0.