Skip to content

Commit a79233c

Browse files
author
Casey Hillers
authored
[packaging] Move chromium mirror to flutter mirror (#104222)
1 parent 4c66e30 commit a79233c

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

dev/bots/prepare_package.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import 'package:path/path.dart' as path;
1515
import 'package:platform/platform.dart' show Platform, LocalPlatform;
1616
import 'package:process/process.dart';
1717

18-
const String chromiumRepo = 'https://chromium.googlesource.com/external/github.com/flutter/flutter';
18+
const String gobMirror =
19+
'https://flutter.googlesource.com/mirrors/flutter';
1920
const String githubRepo = 'https://github.com/flutter/flutter.git';
2021
const String mingitForWindowsUrl = 'https://storage.googleapis.com/flutter_infra_release/mingit/'
2122
'603511c649b00bbef0a6122a827ac419b656bc19/mingit.zip';
@@ -424,7 +425,7 @@ class ArchiveCreator {
424425
// We want the user to start out the in the specified branch instead of a
425426
// detached head. To do that, we need to make sure the branch points at the
426427
// desired revision.
427-
await _runGit(<String>['clone', '-b', branchName, chromiumRepo], workingDirectory: tempDir);
428+
await _runGit(<String>['clone', '-b', branchName, gobMirror], workingDirectory: tempDir);
428429
await _runGit(<String>['reset', '--hard', revision]);
429430

430431
// Make the origin point to github instead of the chromium mirror.

dev/bots/test/prepare_package_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void main() {
123123
'flutter_${platformName}_v1.2.3-dev${platform.isLinux ? '.tar.xz' : '.zip'}');
124124

125125
processManager.addCommands(convertResults(<String, List<ProcessResult>?>{
126-
'git clone -b dev https://chromium.googlesource.com/external/github.com/flutter/flutter': null,
126+
'git clone -b dev https://flutter.googlesource.com/mirrors/flutter': null,
127127
'git reset --hard $testRef': null,
128128
'git remote set-url origin https://github.com/flutter/flutter.git': null,
129129
'git describe --tags --exact-match $testRef': <ProcessResult>[ProcessResult(0, 0, 'v1.2.3', '')],
@@ -159,7 +159,7 @@ void main() {
159159
final String archiveName = path.join(tempDir.absolute.path,
160160
'flutter_${platformName}_v1.2.3-dev${platform.isLinux ? '.tar.xz' : '.zip'}');
161161
final Map<String, List<ProcessResult>?> calls = <String, List<ProcessResult>?>{
162-
'git clone -b dev https://chromium.googlesource.com/external/github.com/flutter/flutter': null,
162+
'git clone -b dev https://flutter.googlesource.com/mirrors/flutter': null,
163163
'git reset --hard $testRef': null,
164164
'git remote set-url origin https://github.com/flutter/flutter.git': null,
165165
'git describe --tags --exact-match $testRef': <ProcessResult>[ProcessResult(0, 0, 'v1.2.3', '')],
@@ -206,7 +206,7 @@ void main() {
206206
final String archiveName = path.join(tempDir.absolute.path,
207207
'flutter_${platformName}_arm64_v1.2.3-dev${platform.isLinux ? '.tar.xz' : '.zip'}');
208208
final Map<String, List<ProcessResult>?> calls = <String, List<ProcessResult>?>{
209-
'git clone -b dev https://chromium.googlesource.com/external/github.com/flutter/flutter': null,
209+
'git clone -b dev https://flutter.googlesource.com/mirrors/flutter': null,
210210
'git reset --hard $testRef': null,
211211
'git remote set-url origin https://github.com/flutter/flutter.git': null,
212212
'git describe --tags --exact-match $testRef': <ProcessResult>[ProcessResult(0, 0, 'v1.2.3', '')],
@@ -250,7 +250,7 @@ void main() {
250250

251251
test('throws when a command errors out', () async {
252252
final Map<String, List<ProcessResult>> calls = <String, List<ProcessResult>>{
253-
'git clone -b dev https://chromium.googlesource.com/external/github.com/flutter/flutter':
253+
'git clone -b dev https://flutter.googlesource.com/mirrors/flutter':
254254
<ProcessResult>[ProcessResult(0, 0, 'output1', '')],
255255
'git reset --hard $testRef': <ProcessResult>[ProcessResult(0, -1, 'output2', '')],
256256
};
@@ -263,7 +263,7 @@ void main() {
263263
final String archiveName = path.join(tempDir.absolute.path,
264264
'flutter_${platformName}_v1.2.3-dev${platform.isLinux ? '.tar.xz' : '.zip'}');
265265
final Map<String, List<ProcessResult>?> calls = <String, List<ProcessResult>?>{
266-
'git clone -b dev https://chromium.googlesource.com/external/github.com/flutter/flutter': null,
266+
'git clone -b dev https://flutter.googlesource.com/mirrors/flutter': null,
267267
'git reset --hard $testRef': null,
268268
'git remote set-url origin https://github.com/flutter/flutter.git': null,
269269
'git describe --tags --abbrev=0 $testRef': <ProcessResult>[ProcessResult(0, 0, 'v1.2.3', '')],
@@ -312,7 +312,7 @@ void main() {
312312
final ProcessResult codesignFailure = ProcessResult(1, 1, '', 'code object is not signed at all');
313313
final String binPath = path.join(tempDir.path, 'flutter', 'bin', 'cache', 'dart-sdk', 'bin', 'dart');
314314
final Map<String, List<ProcessResult>?> calls = <String, List<ProcessResult>?>{
315-
'git clone -b dev https://chromium.googlesource.com/external/github.com/flutter/flutter': null,
315+
'git clone -b dev https://flutter.googlesource.com/mirrors/flutter': null,
316316
'git reset --hard $testRef': null,
317317
'git remote set-url origin https://github.com/flutter/flutter.git': null,
318318
'git describe --tags --exact-match $testRef': <ProcessResult>[ProcessResult(0, 0, 'v1.2.3', '')],

0 commit comments

Comments
 (0)