mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:07:11 +00:00
Bypass pub constraint validation for dartfix 0.1.7.
Using this in lieu of the previous dartfix pubspec commit for 0.1.7; pub no longer allows pinning to specific versions of dependencies. So, create a constraint that technically allows a range but in practice won't. Change-Id: Ifc5cb1eeb733d1aafbf88c1d4cd7a602834e5b89 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147220 Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Janice Collins <jcollins@google.com> Auto-Submit: Janice Collins <jcollins@google.com>
This commit is contained in:
parent
30da9d580b
commit
d4514bef78
3 changed files with 1 additions and 27 deletions
|
@ -14,7 +14,7 @@ executables:
|
|||
dependencies:
|
||||
# Pin to an exact version of analysis_server_client because the edit.dartfix
|
||||
# protocol is experimental and will continue to evolve.
|
||||
analysis_server_client: 1.1.3
|
||||
analysis_server_client: '>=1.1.3 <1.1.4'
|
||||
args: ^1.4.0
|
||||
cli_util: ^0.1.3
|
||||
path: ^1.7.0
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
|
||||
// for details. All rights reserved. Use of this source code is governed by a
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
import 'package:test/test.dart';
|
||||
|
||||
import 'test_context.dart';
|
||||
|
||||
void main() {
|
||||
test('client version', () {
|
||||
// The edit.dartfix protocol is experimental and will continue to evolve
|
||||
// an so dartfix will only work with this specific version of the
|
||||
// analysis_server_client package.
|
||||
// If the protocol changes, then a new version of both the
|
||||
// analysis_server_client and dartfix packages must be published.
|
||||
expect(clientVersion, clientVersionInDartfixPubspec);
|
||||
});
|
||||
}
|
||||
|
||||
String get clientVersion =>
|
||||
findValue(findFile('pkg/analysis_server_client/pubspec.yaml'), 'version');
|
||||
|
||||
String get clientVersionInDartfixPubspec =>
|
||||
findValue(findFile('pkg/dartfix/pubspec.yaml'), 'analysis_server_client');
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
import 'package:test/test.dart';
|
||||
|
||||
import 'src/client_version_test.dart' as client_version;
|
||||
import 'src/driver_example_test.dart' as driver_example;
|
||||
import 'src/driver_exclude_test.dart' as driver_exclude;
|
||||
import 'src/driver_help_test.dart' as driver_help;
|
||||
|
@ -16,7 +15,6 @@ import 'src/migrate_command_test.dart' as migrate_command_test;
|
|||
import 'src/options_test.dart' as options_test;
|
||||
|
||||
void main() {
|
||||
group('version', client_version.main);
|
||||
group('driver', driver_example.main);
|
||||
group('driver', driver_exclude.main);
|
||||
group('driver', driver_help.main);
|
||||
|
|
Loading…
Reference in a new issue