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

Support renaming the be channel to main. #102

Merged
merged 4 commits into from Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
@@ -1,8 +1,10 @@
## v1.5.1-dev
## v1.5.1

* No longer test the `setup-dart` action on pre-2.12 SDKs.
* Upgrade JS interop code to use extension types
(the new name for inline classes).
* The upcoming rename of the `be` channel to `main` is now supported with
forward compatibility that switches when the rename happens.

## v1.5.0

Expand Down
141 changes: 56 additions & 85 deletions dist/main.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sig.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions lib/main.dart
Expand Up @@ -51,9 +51,15 @@ void main(List<String> args) async {
version =
raw ? 'latest' : (await latestPublishedVersion(channel, flavor));
} else if (sdk == 'main') {
channel = 'be';
version =
raw ? 'latest' : (await latestPublishedVersion(channel, flavor));
// Check for `main` first and fall back to `be`. This handles the channel
// rename from `be` to `main` (also tracked as b/299435467).
try {
channel = 'main';
await latestPublishedVersion(channel, flavor);
} catch (_) {
channel = 'be';
}
version = 'latest';
} else {
version = sdk;

Expand Down