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(tools): require min version or use @latest #511

Merged
merged 5 commits into from
Jun 3, 2020
Merged

Conversation

wooj2
Copy link
Contributor

@wooj2 wooj2 commented Jun 3, 2020

In attempts of addressing:
#502

If customers have an older version of amplify-app installed on their machines, we will exec the command:

npx amplify-app@latest

Otherwise, we will execute:

npx amplify-app

Forcing latest did not seem like the right thing to do. Also, when running npx, there isn't a good way of status-ing where the command (amplify-app) is being pulled from ( a local repo, or... online. etc..)

In addition to checking the version of amplify-app, I extended this to check the version of amplify-cli per the request of @drochetti. We will fail a build if customers do not have a minimum version required for amplify-cli. Upon failing a build, they will be greeted with this message in Xcode:
Screen Shot 2020-06-03 at 1 50 33 PM

Fully open to suggestions on this one!

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AmplifyTools/amplify-tools.sh Outdated Show resolved Hide resolved
@wooj2 wooj2 requested a review from palpatim June 3, 2020 20:00
AmplifyTools/amplify-tools.sh Show resolved Hide resolved
AmplifyTools/amplify-tools.sh Show resolved Hide resolved
AmplifyTools/amplify-tools.sh Show resolved Hide resolved
AmplifyTools/amplify-tools.sh Outdated Show resolved Hide resolved
@wooj2 wooj2 merged commit be3969c into master Jun 3, 2020
@wooj2 wooj2 deleted the master-ampTools branch June 3, 2020 20:59
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.

2 participants