forked from firka/flutter
Reverts flutter/flutter#144329 Initiated by: goderbauer Reason for reverting: broke postsubmit doc generation. Original PR Author: goderbauer Reviewed By: {devoncarew, HansMuller, gspencergoog} This change reverts the following previous change: Original Description: Dartpad doesn't have a "master" channel anymore, it got renamed to "main". Sadly, specifying "master" is now falling back to "stable" which breaks some of our examples in the docs that require a more current Flutter version, e.g. https://main-api.flutter.dev/flutter/material/TextButton-class.html
This commit is contained in:
@@ -742,13 +742,14 @@ class DartdocGenerator {
|
||||
|
||||
// Check a "dartpad" example, any one will do, and check for the correct URL
|
||||
// arguments.
|
||||
// Just use "main" for any branch other than the LUCI_BRANCH.
|
||||
// Just use "master" for any branch other than the LUCI_BRANCH.
|
||||
final String? luciBranch = platform.environment['LUCI_BRANCH']?.trim();
|
||||
final String expectedBranch = luciBranch != null && luciBranch.isNotEmpty ? luciBranch : 'main';
|
||||
final String expectedBranch = luciBranch != null && luciBranch.isNotEmpty ? luciBranch : 'master';
|
||||
final List<String> argumentRegExps = <String>[
|
||||
r'split=\d+',
|
||||
r'run=true',
|
||||
r'sample_id=widgets\.Listener\.\d+',
|
||||
'sample_channel=$expectedBranch',
|
||||
'channel=$expectedBranch',
|
||||
];
|
||||
for (final String argumentRegExp in argumentRegExps) {
|
||||
|
||||
Reference in New Issue
Block a user