Skip to content

Update the release script to take into account pubspec_overrides.yaml #2080

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

Merged
merged 3 commits into from
Apr 7, 2023

Conversation

elliette
Copy link
Contributor

@elliette elliette commented Apr 6, 2023

A script to automate most of the manual steps of releasing webdev / dwds was recently added:

As were pubspec_override.yaml files (this was so we wouldn't have to comment-out our dependency overrides when publishing):

Reading through comments on dart-lang/pub#3782, it seems pubspec_overrides are used during publishing.

Therefore, this PR updates our release script to comment out the overrides when publishing, and un-comment them when resetting the packages after publishing.

Work towards #2085

@elliette elliette requested review from jakemac53 and natebosch April 6, 2023 22:14
String package, {
required bool includeOverrides,
}) {
final pubspecOverrides = File('../$package/pubspec_overrides.yaml');
Copy link
Member

Choose a reason for hiding this comment

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

WDYT about temporarily moving the files instead?

Rename it to ignore_pubspec_overrides.yaml during publish, then name it back.

This would allow the file to have comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like that suggestion! Done.

@elliette elliette merged commit 48e3211 into dart-lang:master Apr 7, 2023
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