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

fix: avoid throwing ComponentNotFound when .bitmap has a non-exist version on the scope #6496

Merged
merged 7 commits into from
Oct 5, 2022

Conversation

davidfirst
Copy link
Member

Happens when an exported component has a local tag and .bit got deleted. The local scope doesn't have this local tag anymore and it never reached the remote.
Previously, this use-case was handled by the out-of-sync algorithm, which synced the version according to the remote.
Since Harmony, a new load-hook was added before the out-of-sync logic, which imports components from remotes. This import threw ComponentNotFound in this case.
This PR fixes it by running some of the out-of-sync before the on-load hook gets called.

@davidfirst davidfirst enabled auto-merge (squash) October 5, 2022 00:50
@davidfirst davidfirst merged commit bc03232 into master Oct 5, 2022
@davidfirst davidfirst deleted the out-of-sync-local-ver branch October 5, 2022 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants