@@ -255,11 +255,13 @@ Future<({String configKind, String? dartSdkPath, String? flutterSdkPath})>
255255 sdkKind: 'dart' ,
256256 configKind: bundle.configKind,
257257 version: bundle.dart,
258+ channel: bundle.channel,
258259 );
259260 final flutterSdkPath = await _installSdk (
260261 sdkKind: 'flutter' ,
261262 configKind: bundle.configKind,
262263 version: bundle.flutter,
264+ channel: bundle.channel,
263265 );
264266
265267 return (
@@ -280,6 +282,7 @@ Future<({String configKind, String? dartSdkPath, String? flutterSdkPath})>
280282
281283Future <String ?> _installSdk ({
282284 required String sdkKind,
285+ required String channel,
283286 required String configKind,
284287 required String version,
285288}) async {
@@ -300,6 +303,7 @@ Future<String?> _installSdk({
300303 'tool/setup-$sdkKind .sh' ,
301304 sdkPath,
302305 version,
306+ channel,
303307 ],
304308 workingDirectory: '/home/worker/pub-dev' ,
305309 environment: {
@@ -322,11 +326,13 @@ Future<String?> _installSdk({
322326}
323327
324328class _SdkBundle {
329+ final String channel;
325330 final String configKind;
326331 final String dart;
327332 final String flutter;
328333
329334 _SdkBundle ({
335+ required this .channel,
330336 required this .configKind,
331337 required this .dart,
332338 required this .flutter,
@@ -352,17 +358,20 @@ Future<List<_SdkBundle>> _detectSdkBundles() async {
352358 if (latestStableDartSdkVersion != null &&
353359 latestStableFlutterSdkVersion != null )
354360 _SdkBundle (
361+ channel: 'stable' ,
355362 configKind: 'latest-stable' ,
356363 dart: latestStableDartSdkVersion,
357364 flutter: latestStableFlutterSdkVersion,
358365 ),
359366 if (latestBetaDartSdkVersion != null && latestBetaFlutterSdkVersion != null )
360367 _SdkBundle (
368+ channel: 'beta' ,
361369 configKind: 'latest-beta' ,
362370 dart: latestBetaDartSdkVersion,
363371 flutter: latestBetaFlutterSdkVersion,
364372 ),
365373 _SdkBundle (
374+ channel: 'master' ,
366375 configKind: 'master' ,
367376 dart: 'master' ,
368377 flutter: 'master' ,
0 commit comments