Skip to content

Conversation

@stuartmorgan-g
Copy link
Collaborator

Replaces the full build-and-analyze version of pod lib lint with the --quick version. This means that this step no longer does native code analysis (which analyze covers), so it no longer needs an exclusion list for packages with warnings.

As a result of this change, flutter/packages no longer has a dependency on the version of Flutter that was published to CocoaPods to facilitate podspec testing.

Fixes flutter/flutter#178806

Replaces the full build-and-analyze version of `pod lib lint` with the
`--quick` version. This means that this step no longer does native code
analysis (which `analyze` covers), so it no longer needs an exclusion
list for packages with warnings.

As a result of this change, flutter/packages no longer has a dependency
on the version of Flutter that was published to CocoaPods to facilitate
podspec testing.

Fixes flutter/flutter#178806
print(frameworkResult.stdout);
print(frameworkResult.stderr);

// Lint plugin as library.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The difference only matters when building, so we don't need to run both modes.

'lint',
podspecPath,
'--configuration=Debug', // Release targets unsupported arm64 simulators. Use Debug to only build against targeted x86_64 simulator devices.
'--skip-tests',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These flags aren't used in --quick mode.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the podspec-check command to use pod lib lint --quick instead of a full pod lib lint. This removes the dual-pass linting for library and framework styles and removes the --exclude flag from the CI configuration. The corresponding tests are updated to reflect the new single-pass linting process. My review includes a suggestion to remove a comment that has become obsolete due to these changes.

Copy link
Contributor

@vashworth vashworth left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 25, 2025
@auto-submit auto-submit bot merged commit afc7a76 into flutter:main Nov 25, 2025
80 checks passed
agrapine pushed a commit to swipelab/flutter_packages that referenced this pull request Nov 26, 2025
Replaces the full build-and-analyze version of `pod lib lint` with the `--quick` version. This means that this step no longer does native code analysis (which `analyze` covers), so it no longer needs an exclusion list for packages with warnings.

As a result of this change, flutter/packages no longer has a dependency on the version of Flutter that was published to CocoaPods to facilitate podspec testing.

Fixes flutter/flutter#178806
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 26, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Nov 27, 2025
flutter/packages@cc3dca6...5d8d954

2025-11-26 [email protected] [video_player_avfoundation] Create a
Dart player instance (flutter/packages#10490)
2025-11-25 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump com.google.maps.android:android-maps-utils from 3.6.0
to 3.19.1 in
/packages/google_maps_flutter/google_maps_flutter_android/android
(flutter/packages#10390)
2025-11-25 [email protected] [path_provider] Revert iOS/macOS to
plugin-based implementation (flutter/packages#10517)
2025-11-25 [email protected] [google_maps_flutter] Replace
deprecated APIs (flutter/packages#10474)
2025-11-25 [email protected] [tool] Remove code analysis from
podspec-check (flutter/packages#10484)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
mboetger pushed a commit to mboetger/flutter that referenced this pull request Dec 2, 2025
)

flutter/packages@cc3dca6...5d8d954

2025-11-26 [email protected] [video_player_avfoundation] Create a
Dart player instance (flutter/packages#10490)
2025-11-25 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump com.google.maps.android:android-maps-utils from 3.6.0
to 3.19.1 in
/packages/google_maps_flutter/google_maps_flutter_android/android
(flutter/packages#10390)
2025-11-25 [email protected] [path_provider] Revert iOS/macOS to
plugin-based implementation (flutter/packages#10517)
2025-11-25 [email protected] [google_maps_flutter] Replace
deprecated APIs (flutter/packages#10474)
2025-11-25 [email protected] [tool] Remove code analysis from
podspec-check (flutter/packages#10484)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
reidbaker pushed a commit to AbdeMohlbi/flutter that referenced this pull request Dec 10, 2025
)

flutter/packages@cc3dca6...5d8d954

2025-11-26 [email protected] [video_player_avfoundation] Create a
Dart player instance (flutter/packages#10490)
2025-11-25 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump com.google.maps.android:android-maps-utils from 3.6.0
to 3.19.1 in
/packages/google_maps_flutter/google_maps_flutter_android/android
(flutter/packages#10390)
2025-11-25 [email protected] [path_provider] Revert iOS/macOS to
plugin-based implementation (flutter/packages#10517)
2025-11-25 [email protected] [google_maps_flutter] Replace
deprecated APIs (flutter/packages#10474)
2025-11-25 [email protected] [tool] Remove code analysis from
podspec-check (flutter/packages#10484)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[packages] Switch podspec linting to --quick

2 participants