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

improve(cli): Add validation for tag supplied to rw upgrade #1304

Merged
merged 6 commits into from
Oct 13, 2020

Conversation

dac09
Copy link
Collaborator

@dac09 dac09 commented Oct 8, 2020

Relates to #1270

The tag is now validated to be rc, canary or any valid semver string.

Regex comes from https://github.com/sindresorhus/semver-regex#readme

@thedavidprice
Copy link
Contributor

@dac09 this is working very well! I made a comment about adding the "latest" tag as allowed.

Also, this is a minor issue if easy to address --> The error is given twice "Invalid tag supplied. Supported values: rc, canary or valid semver version". Possible to remove duplicate?

Screen Shot 2020-10-10 at 10 38 02 AM

@dac09
Copy link
Collaborator Author

dac09 commented Oct 10, 2020

Sure @thedavidprice I'll try and figure out why that happens, but isn't super obvious!

@thedavidprice
Copy link
Contributor

This is working great!

Andy easy fix on the error output redundancy. Here's the updated output on Error.
Screen Shot 2020-10-13 at 3 59 04 PM

@thedavidprice thedavidprice merged commit f0ea31c into redwoodjs:main Oct 13, 2020
@dac09 dac09 deleted the feature/cooerce-tags-for-upgrade branch October 22, 2020 10:22
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.

None yet

2 participants