-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Running lerna bootstrap
messes with repository and files with in it.
#3056
Comments
That sounds really weird, it definitely shouldn’t be deleting folders regardless of whether they contain modules published on npm or not, nor should it be editing files. I can’t say that I see this happening. Are you doing anything that isn’t in our developer docs? FWIW you should never have to run |
I full heartedly agree!
I believe @lidel have seeing something along those lines too.
I do. Specifically I am have created following directories that interdepend.
The problem is that
That is also why I run |
Oh and BTW and as I run git status On branch shared-worker Your branch is ahead of 'origin/shared-worker' by 33 commits. (use "git push" to publish your local commits) |
I think that this issue is related to what is happening with me on: #3019 the |
Do you still see this problem? |
I think it's still there and can be reproduced by killing the process. |
I've definitely seen it mess up the It might be worth opening an issue on the lerna repo about it? |
I'm going to close this issue as I don't think there's an action for us here. Please open an issue on the lerna repo and maybe they can help. |
Possibly related: lerna/lerna#2683 |
Description:
Every time I run
lerna bootstrap
it seems to mess with files tracked by the repository. The worse part is it can cause data loss. I had three new directories underpackages
and only two were tracked by git. Runninglerna bootstrap
(to link local dependencies) failed because those sub-packages aren't innpm
registry which caused task to error and those sub-packages vanished.I was able to bring back two tracked by git but third one's gone for good 😭
I also end up with bunch of changes in tests files and other stuff in the other folders.
This probably rare enough scenario, but when it happens it pretty bad.
The text was updated successfully, but these errors were encountered: