Skip to content

Commit

Permalink
Fix failing double check test for sass-parser (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
jathak authored Sep 3, 2024
1 parent b1d5f98 commit 90a70ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tool/grind/double_check.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'dart:io';
import 'package:cli_pkg/cli_pkg.dart' as pkg;
import 'package:collection/collection.dart';
import 'package:grinder/grinder.dart';
import 'package:path/path.dart' as p;
import 'package:pub_api_client/pub_api_client.dart';
import 'package:pubspec_parse/pubspec_parse.dart';

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

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

0 comments on commit 90a70ef

Please sign in to comment.