From 110c0a7f80503fdaf5316cac64079e68a0f5d562 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Sat, 14 May 2022 10:28:59 -0700 Subject: [PATCH] [ci] Add pointer to template image assets wiki (#103787) Many of our flutter_tools templates include image assets such as application icons. Adding these will trigger an analysis error from our CI tooling. This adds a pointer to the wiki describing the procedure for adding or updating image assets in the templates: https://github.com/flutter/flutter/wiki/Managing-template-image-assets Uncovered while working on https://github.com/flutter/flutter/issues/103371 --- dev/bots/analyze.dart | 2 ++ dev/bots/test/analyze_test.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dev/bots/analyze.dart b/dev/bots/analyze.dart index 5224ac9d7d..974d6bd91c 100644 --- a/dev/bots/analyze.dart +++ b/dev/bots/analyze.dart @@ -1420,6 +1420,8 @@ Future verifyNoBinaries(String workingDirectory, { Set? legacyBin 'size of the repository as it is distributed to all our developers. If you have a binary', 'to which you need access, you should consider how to fetch it from another repository;', 'for example, the "assets-for-api-docs" repository is used for images in API docs.', + 'To add assets to flutter_tools templates, see the instructions in the wiki:', + 'https://github.com/flutter/flutter/wiki/Managing-template-image-assets', ]); } } diff --git a/dev/bots/test/analyze_test.dart b/dev/bots/test/analyze_test.dart index 1d6668e0f0..c3b51e87ce 100644 --- a/dev/bots/test/analyze_test.dart +++ b/dev/bots/test/analyze_test.dart @@ -167,6 +167,8 @@ void main() { 'size of the repository as it is distributed to all our developers. If you have a binary\n' 'to which you need access, you should consider how to fetch it from another repository;\n' 'for example, the "assets-for-api-docs" repository is used for images in API docs.\n' + 'To add assets to flutter_tools templates, see the instructions in the wiki:\n' + 'https://github.com/flutter/flutter/wiki/Managing-template-image-assets\n' '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n' ); }