Skip to content

Commit 90a70ef

Browse files
authored
Fix failing double check test for sass-parser (#2330)
1 parent b1d5f98 commit 90a70ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tool/grind/double_check.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import 'dart:io';
77
import 'package:cli_pkg/cli_pkg.dart' as pkg;
88
import 'package:collection/collection.dart';
99
import 'package:grinder/grinder.dart';
10-
import 'package:path/path.dart' as p;
1110
import 'package:pub_api_client/pub_api_client.dart';
1211
import 'package:pubspec_parse/pubspec_parse.dart';
1312

@@ -36,8 +35,10 @@ Future<void> doubleCheckBeforeRelease() async {
3635
".",
3736
...Directory("pkg").listSync().map((entry) => entry.path)
3837
]) {
39-
var pubspec = Pubspec.parse(File("$dir/pubspec.yaml").readAsStringSync(),
40-
sourceUrl: p.toUri("$dir/pubspec.yaml"));
38+
var pubspecFile = File("$dir/pubspec.yaml");
39+
if (!pubspecFile.existsSync()) continue;
40+
var pubspec = Pubspec.parse(pubspecFile.readAsStringSync(),
41+
sourceUrl: pubspecFile.uri);
4142

4243
var package = await client.packageInfo(pubspec.name);
4344
if (pubspec.version == package.latestPubspec.version) {

0 commit comments

Comments
 (0)