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

Allow multiple - in a version string #457

Merged
merged 2 commits into from
Feb 17, 2018

Conversation

JoelMarcey
Copy link
Contributor

Fixes #450

Motivation

Right now we were assuming that there would be no - in a version.
That was breaking things.

This allows more flexibility for versions like:

1.0.0-beta.2

Test Plan

Was able to successfully build versions that contained multiple dashes

Related PRs

Ref #455

Right now we were assuming that there would be no `-` in a version.
That was breaking things.

This allows more flexibility for versions like:

1.0.0-beta.2

Ref facebook#455
Fixes facebook#450
@JoelMarcey
Copy link
Contributor Author

@iRoachie Here you go. Wanna give this a run to see if it fixes your issues?

@iRoachie
Copy link
Contributor

Alright! After deep debugging, this fix definitely works.

However I did discover something along the way. If any of your ids for documents contain a -, it will fail. However it still allows for the version number to have a -. Tried it with yarn run version 1.0.0-beta.2.

@JoelMarcey
Copy link
Contributor Author

@iRoachie Thanks for the chat on Discord. We figured out my fix wasn't complete. Needed a bit more checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants