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
lerna publish --independent triggering publish also for packages that haven't changed #1434
Comments
Do they depend on a package which has changed? |
Nope, I didn't touch the dependencies either |
What does |
@evocateur right now only this after I committed some changes to the package I tried to publish again after this, and it still prompts for every other package also. |
If every other local package depends on that package, they will also be bumped (because lerna bumps the dependency range of the package with changes). This is how lerna works.
… On May 24, 2018, at 03:13, Marco Fugaro ***@***.***> wrote:
@evocateur right now only this
after I committed some changes to the package accurapp-scripts, the lerna diff is showing me the changed lines only of the files inside accurapp-scripts I changed, nothing else.
I tried to publish again after this, and it still prompts for every other package also.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Except they don't, take for example the package None of its dependencies is another package. And this is lerna asking me to publish it, even if it isn't in the lerna diff: |
All I can think of is that your tags are missing, somehow, and lerna thinks it has to publish everything. Might be because you last published on a branch that was then merged into master, which corrupts the tag references. |
Hmm interesting, might be, how can I try to fix it? By removing the tags? |
No, by ensuring that the tags exist, are reachable from your current HEAD, and such. `git describe` is an easy way to test “reachability.”
If the tags are missing or mangled, you’ll need to restore them (as annotated tags) on the master branch. Then lerna will properly ignore packages that have not changed since the last release (annotated git tag).
… On May 25, 2018, at 07:46, Marco Fugaro ***@***.***> wrote:
Hmm interesting, might be, how can I try to fix it? By removing the tags?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@evocateur Thank you! I will check the tags. Does lerna need EVERY past publish tags to be changed, or just the latest ones? Because the latest ones are already present in the same branch I'm publishing from (not master) |
As long as the most recent reachable tag is annotated (not lightweight), that’s all you need.
… On May 29, 2018, at 08:04, Marco Fugaro ***@***.***> wrote:
@evocateur Thank you! I will check the tags.
Does lerna need EVERY past publish tags to be changed, or just the latest ones? Because the latest ones are already present in the same branch I'm publishing from (not master)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Alright man, I checked the tags using this script and turns out the latest tags are actually annotated. Also I made sure they're on the same branch I am in. I went ahead and made a diff for the latest tag and the current HEAD, only for one package, like this:
And it outputs nothing because nothing has actually changed. I don't know what else to do man, I provided you with the repo where this happens and the specific branch, if you wish to debug. Thanks for your help! |
Is this not a duplicate of #1357? |
Yup, I think so |
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. |
When I run
lerna publish --independent
, lerna is asking me to publish also the packages that I haven't touched, and there is no way for me to skip the publishing of those.From the readme:
Expected Behavior
It should prompt me to publish only the packages that have changed.
Current Behavior
It prompts the publish for every package.
Steps to Reproduce (for bugs)
This is the repo where this happens
lerna.json
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: