fix(local-only), do not auto-tag/snap local-only, block export when some ids are local-only #9059
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
also, remove the --include-local-only flag.
This is related to the recently-merged local-only feature: #9057.
The original implementation has two issues:
--include-local-only
flag. Then, the export filters them out. However, what if it has been unset later on, snapped again and exported. The remote doesn't have part of the history which was local-only back then.This PR handles the issues above by the follwoing:
--include-local-only
flag, so it's impossible to snap/tag local-only components.bit local-only set
from running on staged components.bit export
blocks the export and suggests runningbit reset
orbit local-only unset
.