[deps] rev tools

+ update `rev_sdk_deps.dart` to work on Windows

Revisions updated by `dart tools/rev_sdk_deps.dart`.

tools (https://github.com/dart-lang/tools/compare/be0bd20..a433200c):
  a433200c  Thu May 22 16:53:40 2025 +0100  Danny Tuppeny  [test_reflective_loader] Pass test locations to `pkg:test` to improve IDE navigation (dart-lang/tools#2090)

Change-Id: I9706a72ac850b3cd43bdeed671431cf836dcd860
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/430501
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
Danny Tuppeny
2025-05-27 09:27:38 -07:00
committed by Commit Queue
parent e3fe1c36f3
commit 15f49c9da0
2 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ vars = {
"sync_http_rev": "dc54465f07d9652875deeade643256dafa2fbc6c",
"tar_rev": "5a1ea943e70cdf3fa5e1102cdbb9418bd9b4b81a",
"test_rev": "42a6d333d96b4b0964d356b9a29ca47ccdb43691",
"tools_rev": "be0bd20c803377063c45904512f272fdda94e8c3",
"tools_rev": "a433200cf62b2da0a02602f138ae25d61b63739c",
"vector_math_rev": "13f185f7e97d559e003f5ac79201da12f9a01049",
"web_rev": "f1becf07db9faa56559d2844c3c6d430dc9b37de",
"webdev_rev": "5dbb30ebc695ad2ecc01fa8eae4e0494c199e1bc",
+15 -6
View File
@@ -218,14 +218,25 @@ class GitHelper {
}
class GClientHelper {
Future<String> execGclient(
List<String> cmd, {
String? cwd,
Map<String, String>? environment,
}) {
return exec(
[Platform.isWindows ? 'gclient.bat' : 'gclient', ...cmd],
cwd: cwd,
environment: environment,
);
}
Future<List<PackageDependency>> getPackageDependencies() async {
// gclient revinfo --output-json=<file> --ignore-dep-type=cipd
final tempDir = Directory.systemTemp.createTempSync();
final outFile = File(path.join(tempDir.path, 'deps.json'));
await exec([
'gclient',
await execGclient([
'revinfo',
'--output-json=${outFile.path}',
'--ignore-dep-type=cipd',
@@ -247,9 +258,8 @@ class GClientHelper {
Future<String> getHash(PackageDependency dep) async {
// DEPOT_TOOLS_UPDATE=0 gclient getdep --var=path_rev
var depName = dep.name;
var result = await exec(
var result = await execGclient(
[
'gclient',
'getdep',
'--var=${depName}_rev',
],
@@ -263,9 +273,8 @@ class GClientHelper {
Future<String> setHash(PackageDependency dep, String hash) async {
// gclient setdep --var=args_rev=9879dsf7g9d87d9f8g7
var depName = dep.name;
return await exec(
return await execGclient(
[
'gclient',
'setdep',
'--var=${depName}_rev=$hash',
],