-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
2.x->3.x - lerna version - EUNCOMMIT Working tree has uncommitted changes #1613
Comments
It looks like adding https://github.com/lerna/lerna/blob/master/commands/version/index.js#L157 |
Yeah, you don't want to pass To clarify, git is not "effectively ignored" when passing this option, it's just avoiding In any case, when an existing pattern from npm exists (such as |
While using lerna 2.11.0, to publish I used "lerna publish --skip-git --cd-version patch --yes",
lerna notice cli v3.3.0 |
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Expected Behavior
lerna version
should allow updating package versions regardless of commit status when git is effectively ignored (--no-git-tag-version --no-push
).Current Behavior
--skip-git
is no longer relevant in 3.x, so verification may be occurring when we previously were allowed to avoid it. When there are uncommitted changes andlerna version patch --yes --no-git-tag-version --no-push
is run, the result is alerna ERR! EUNCOMMIT Working tree has uncommitted changes
Possible Solution
If it is too far to assume that
--no-git-tag-version --no-push
means avoid clean workspace verification, perhaps an override--no-git-clean-check
or something of the same intent?Steps to Reproduce (for bugs)
lerna version patch --yes --no-git-tag-version --no-push
lerna.json
Context
We encountered this when updating from 2.x to 3.x based on the recommended CLI messages. Previously, we were using the
lerna publish
command to simply update the versions.We use a
git-flow
workflow and rely on lerna for exec, versioning and updated functionality.In 3.x this command with deprecated options works but we want to fix our deprecated usage:
Given this, we were excited about the new
lerna version
as it better fits into ourgit-flow
workflow, but we encountered theuncommitted
message - which I agree is a good thing, except when we might want to override it.Your Environment
lerna --version
The text was updated successfully, but these errors were encountered: