Skip to content

Commit 0baa3c1

Browse files
mit-mitCommit Bot
authored and
Commit Bot
committed
Discontinue .packages file
Contributes to #48275 Change-Id: I3acb90b91b9b206b69ca0ae311aa43f5954c29a6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243625 Reviewed-by: Nate Bosch <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]> Commit-Queue: Michael Thomsen <[email protected]>
1 parent 4258a59 commit 0baa3c1

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

pkg/test_runner/lib/src/configuration.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class TestConfiguration {
171171
String _packages;
172172

173173
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.
175175
_packages ??=
176176
Repository.uri.resolve('.dart_tool/package_config.json').toFilePath();
177177

tools/generate_package_config.dart

-22
Original file line numberDiff line numberDiff line change
@@ -113,28 +113,6 @@ void main(List<String> args) {
113113
},
114114
);
115115
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());
138116
}
139117

140118
/// Writes the given [contents] string to [file] if the contents are different

0 commit comments

Comments
 (0)