Bit snap followed by bit reset clears the forkedFrom entry to the bitmap file
sbland opened this issue · comments
sbland commented
Describe the bug
Bit snap followed by bit reset clears the forkedFrom entry to the bitmap file
Steps to Reproduce
- Use
bit snap
on a forked component - Use
bit reset
on the component - The following part of the components json in .bitmap is cleared
"teambit.component/forking": {
"forkedFrom": {
"scope": "myscope",
"name": "my-component",
"version": "0.0.3"
}
},
Expected Behavior
Should keep the forkedFrom info
Specifications
- Bit version:
1.6.62
- Workspace type: harmony
- Node version:
v18.19.1
- npm / yarn version:
10.2.4
- Platform:
ubuntu
Gilad Shoham commented
Thanks, we will check it
@davidfirst FYI
David First commented
I'm unable to reproduce. See screenshot attached.
@sbland , maybe you're using a very old version of bit?
This was handled a while ago. Basically what happens is that when you snap, the .bitmap changes are saved into .bit/staged-config/main.json
, and then when running bit reset
, bit restore them back from that file.