Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing double check test for sass-parser #2330

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

jathak
Copy link
Member

@jathak jathak commented Sep 3, 2024

No description provided.

@jathak jathak requested a review from nex3 September 3, 2024 22:23
var pubspecFile = File("$dir/pubspec.yaml");
if (pubspecFile.existsSync()) {
var pubspec = Pubspec.parse(pubspecFile.readAsStringSync(),
sourceUrl: p.toUri("$dir/pubspec.yaml"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sourceUrl: p.toUri("$dir/pubspec.yaml"));
sourceUrl: pubspecFile.uri);

This also allows removal of import 'package:path/path.dart'

if (pubspec.version == package.latestPubspec.version) {
fail("${pubspec.name} ${pubspec.version} has already been released!");
var pubspecFile = File("$dir/pubspec.yaml");
if (pubspecFile.existsSync()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: avoid excess indentation via

Suggested change
if (pubspecFile.existsSync()) {
if (!pubspecFile.existsSync()) continue;

pubspec.yaml Outdated
@@ -1,5 +1,5 @@
name: sass
version: 1.78.0
version: 1.78.1
Copy link
Contributor

@ntkme ntkme Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since nothing has actually been released, we could remove the git tag, and then retag the same release.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

@jathak jathak merged commit 90a70ef into main Sep 3, 2024
34 checks passed
@jathak jathak deleted the fix-double-check branch September 3, 2024 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants