Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[cli] Make it possible to run expo upgrade with beta release prior to setting flag #2967

Merged
merged 1 commit into from
Nov 27, 2020

Conversation

brentvatne
Copy link
Member

@brentvatne brentvatne commented Nov 27, 2020

This is useful so we can easily test standalone app builds on existing apps without needing to manually update deps or make the beta release publicly available through documented mechanisms.

Screen Shot 2020-11-27 at 2 14 18 PM

);
throw new CommandError(
`You provided the target SDK version value of ${targetSdkVersionString}, which does not seem to exist.\n` +
`Valid SDK versions are in the range of ${minSdkVersion}.0.0 to ${maxSdkVersion}.0.0.`
Copy link
Member Author

Choose a reason for hiding this comment

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

printing a range here because providing a list of SDK versions makes the error hard to read and will be even harder to read over time. might want to generalize to other places where we do the same thing

);
if (getenv.boolish('EXPO_BETA', false)) {
log.gray(
`Release notes are not available for beta releases. Please refer to the CHANGELOG: https://github.com/expo/expo/blob/master/CHANGELOG.md.`
Copy link
Member Author

Choose a reason for hiding this comment

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

provide changelog rather than release notes when upgrading to beta release

if (!answer) {
return;
}
// If we still don't have a version, even after searching through unreleased versions
Copy link
Member Author

Choose a reason for hiding this comment

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

this changes existing behavior on expo upgrade for unknown sdk versions. these would not actually work anyways, so just actually bail out instead

@brentvatne brentvatne merged commit 9777c36 into master Nov 27, 2020
@brentvatne brentvatne deleted the @brent/upgrade-before-beta-flag branch November 27, 2020 22:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant