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

change "bit lane merge main" default to include non-lane components #8279

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

davidfirst
Copy link
Member

@davidfirst davidfirst commented Dec 18, 2023

The scenario is when on a lane and some of the workspace components belong to main and are not part of the lane.
In case these main components are out of date, how to update them?
In the past, bit checkout head was the way to go. This had been changed to not include them, see here the reason.
Currently, bit lane merge main takes care of these components. However, a change done 4 months ago, required a flag --include-non-lane-comps to include them.
Turns out that this is confusing, and for the most cases, it is expected to include them by default without any flag.
This PR does exactly this. In case these components are not wanted, a new flag has introduced: --exclude-non-lane-comps to exclude them.

Edit: this PR caused a regression by adding non-lane components into the lane object. This issue has been fixed in this PR: #8337

@davidfirst davidfirst merged commit 181a2c0 into master Dec 18, 2023
@davidfirst davidfirst deleted the revert-merge-non-lane-comps branch December 18, 2023 16:44
davidfirst added a commit that referenced this pull request Dec 29, 2023
…ne when merging from main (#8337)

Due to a recent change #8279, the
default when running `bit lane merge main` is to include non-lane
components.
The issue is that these non-lane components were also added to the lane
object. So for example, if a workspace has 10 components and only 2 were
part of the lane, after the merge, all 10 components became part of the
lane.

This PR fixes it by updating non-lane components in the
.bitmap/file-system but not adding them to the lane object.
If the flag `--exclude-non-lane-comps` is used, then it doesn't touch
these non-lane components.
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