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

Bit snap followed by bit reset clears the forkedFrom entry to the bitmap file #8702

Closed
sbland opened this issue Mar 22, 2024 · 2 comments
Closed
Labels

Comments

@sbland
Copy link

sbland commented Mar 22, 2024

Describe the bug

Bit snap followed by bit reset clears the forkedFrom entry to the bitmap file

Steps to Reproduce

  1. Use bit snap on a forked component
  2. Use bit reset on the component
  3. 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
@GiladShoham
Copy link
Member

Thanks, we will check it
@davidfirst FYI

@davidfirst
Copy link
Member

davidfirst commented Apr 29, 2024

I'm unable to reproduce. See screenshot attached.

Screenshot 2024-04-29 at 10 44 47 AM

@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.

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

No branches or pull requests

3 participants