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

[cli] Fix requested sdk in upgrade command #2557

Merged

Conversation

byCedric
Copy link
Member

@byCedric byCedric commented Sep 2, 2020

Fixes #2556

Why?

Becuase we didn't declare the optional sdk-version value you can provide, Commander returns the command instance to requestedSdkVersion parameter. This messes up two things:

  1. The requested SDK version by outputting "this is an unknown version, you want to try it anyways?"
  2. If you continue after the warning, it tries to fetch options.npm and options.yarn. But, due to 1, this is undefined and breaks the upgrade attempt.

@byCedric byCedric force-pushed the @bycedric/cli/upgrade-fix-requrested-sdk-version branch from 3793a96 to 0c3c8fd Compare September 2, 2020 16:37
@byCedric byCedric requested a review from EvanBacon September 2, 2020 18:08
@brentvatne brentvatne merged commit f254fa1 into master Sep 2, 2020
@brentvatne brentvatne deleted the @bycedric/cli/upgrade-fix-requrested-sdk-version branch September 2, 2020 18:09
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.

expo upgrade command uses [object Object] as latest SDK version
2 participants