File tree 2 files changed +1
-23
lines changed
2 files changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ class TestConfiguration {
171
171
String _packages;
172
172
173
173
String get packages {
174
- // If the .packages file path wasn't given, find it.
174
+ // If the package config file path wasn't given, find it.
175
175
_packages ?? =
176
176
Repository .uri.resolve ('.dart_tool/package_config.json' ).toFilePath ();
177
177
Original file line number Diff line number Diff line change @@ -113,28 +113,6 @@ void main(List<String> args) {
113
113
},
114
114
);
115
115
writeIfDifferent (configFile, packageConfig.generateJson ('..' ));
116
-
117
- // Also generate the repo's .packages file.
118
- var packagesFile = File (join (repoRoot, '.packages' ));
119
- var buffer = StringBuffer ('''
120
- # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
121
- # for details. All rights reserved. Use of this source code is governed by a
122
- # BSD-style license that can be found in the LICENSE file.
123
- #
124
- # This file is generated; do not edit. To re-generate, run:
125
- # 'dart tools/generate_package_config.dart'.
126
-
127
- ''' );
128
- for (var package in packages) {
129
- final name = package.name;
130
- final rootUri = package.rootUri;
131
- final packageUri = package.packageUri;
132
-
133
- if (packageUri != null && packageUri != '.nonexisting' ) {
134
- buffer.writeln ('$name :${posix (rootUri )}/${posix (packageUri )}' );
135
- }
136
- }
137
- writeIfDifferent (packagesFile, buffer.toString ());
138
116
}
139
117
140
118
/// Writes the given [contents] string to [file] if the contents are different
You can’t perform that action at this time.
0 commit comments