Christopher Fujino
2024-01-05 14:29:58 -08:00
committed by GitHub
parent e90e4888b8
commit 6edbce9e07
26 changed files with 123 additions and 113 deletions

View File

@@ -18,33 +18,7 @@ import '../dart/pub.dart';
import '../globals.dart' as globals;
import '../project.dart';
import '../runner/flutter_command.dart';
/// Map from package name to package version, used to artificially pin a pub
/// package version in cases when upgrading to the latest breaks Flutter.
///
/// These version pins must be pins, not ranges! Allowing these to be ranges
/// defeats the whole purpose of pinning all our dependencies, which is to
/// prevent upstream changes from causing our CI to fail randomly in ways
/// unrelated to the commits. It also, more importantly, risks breaking users
/// in ways that prevent them from ever upgrading Flutter again!
const Map<String, String> kManuallyPinnedDependencies = <String, String>{
// Add pinned packages here. Please leave a comment explaining why.
'flutter_gallery_assets': '1.0.2', // Tests depend on the exact version.
'flutter_template_images': '4.2.0', // Must always exactly match flutter_tools template.
'material_color_utilities': '0.8.0', // Keep pinned to latest until 1.0.0.
'archive': '3.3.2', // https://github.com/flutter/flutter/issues/115660
'leak_tracker': '10.0.0', // https://github.com/flutter/devtools/issues/3951
'leak_tracker_testing': '2.0.1', // https://github.com/flutter/devtools/issues/3951
'leak_tracker_flutter_testing': '2.0.1', // https://github.com/flutter/devtools/issues/3951
'path_provider_android':
'2.2.1', // https://github.com/flutter/flutter/issues/140796
// vm_service 14 contains breaking changes and needs to be rolled carefully
// https://github.com/flutter/flutter/pull/140916#issuecomment-1877383354
'vm_service': '13.0.0',
'test_api': '0.6.1', // https://github.com/flutter/flutter/issues/140169
'test_core': '0.5.9', // https://github.com/flutter/flutter/issues/140169
'test': '1.24.9', // https://github.com/flutter/flutter/issues/140169
};
import '../update_packages_pins.dart';
class UpdatePackagesCommand extends FlutterCommand {
UpdatePackagesCommand() {

View File

@@ -0,0 +1,35 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This constant is in its own library so that the test exemption bot knows
// that changing a pin does not require a new test. These pins are already
// tested as part of the analysis shard.
/// Map from package name to package version, used to artificially pin a pub
/// package version in cases when upgrading to the latest breaks Flutter.
///
/// These version pins must be pins, not ranges! Allowing these to be ranges
/// defeats the whole purpose of pinning all our dependencies, which is to
/// prevent upstream changes from causing our CI to fail randomly in ways
/// unrelated to the commits. It also, more importantly, risks breaking users
/// in ways that prevent them from ever upgrading Flutter again!
const Map<String, String> kManuallyPinnedDependencies = <String, String>{
// Add pinned packages here. Please leave a comment explaining why.
'flutter_gallery_assets': '1.0.2', // Tests depend on the exact version.
'flutter_template_images': '4.2.0', // Must always exactly match flutter_tools template.
'material_color_utilities': '0.8.0', // Keep pinned to latest until 1.0.0.
'archive': '3.3.2', // https://github.com/flutter/flutter/issues/115660
'leak_tracker': '10.0.0', // https://github.com/flutter/devtools/issues/3951
'leak_tracker_testing': '2.0.1', // https://github.com/flutter/devtools/issues/3951
'leak_tracker_flutter_testing': '2.0.1', // https://github.com/flutter/devtools/issues/3951
'path_provider_android':
'2.2.1', // https://github.com/flutter/flutter/issues/140796
// vm_service 14 contains breaking changes and needs to be rolled carefully
// https://github.com/flutter/flutter/pull/140916#issuecomment-1877383354
'vm_service': '13.0.0',
'test_api': '0.6.1', // https://github.com/flutter/flutter/issues/140169
'test_core': '0.5.9', // https://github.com/flutter/flutter/issues/140169
'test': '1.24.9', // https://github.com/flutter/flutter/issues/140169
'web_socket_channel': '2.4.1', // https://github.com/flutter/flutter/issues/141032
};

View File

@@ -13,7 +13,7 @@ dependencies:
archive: 3.3.2
args: 2.4.2
browser_launcher: 1.1.1
dds: 3.1.0
dds: 3.1.0+1
dwds: 23.0.0
completion: 1.0.1
coverage: 1.7.2
@@ -27,7 +27,7 @@ dependencies:
multicast_dns: 0.3.2+6
mustache_template: 2.0.0
package_config: 2.1.0
process: 5.0.1
process: 5.0.2
fake_async: 1.3.1
stack_trace: 1.11.1
usage: 4.1.1
@@ -88,7 +88,7 @@ dependencies:
json_rpc_2: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
petitparser: 6.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
platform: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
platform: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
shelf_proxy: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
@@ -118,4 +118,4 @@ dartdoc:
# Exclude this package from the hosted API docs.
nodoc: true
# PUBSPEC CHECKSUM: 5f04
# PUBSPEC CHECKSUM: d062

View File

@@ -7,6 +7,7 @@ import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/commands/update_packages.dart';
import 'package:flutter_tools/src/update_packages_pins.dart';
import '../src/common.dart';