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: download artifacts from unmerged-lane-id when applicable #6537

Merged
merged 2 commits into from
Oct 12, 2022

Conversation

davidfirst
Copy link
Member

@davidfirst davidfirst commented Oct 12, 2022

When an artifacts is needed, Bit goes to the lane-remote or main-remote depends whether this version is on the lane.
In case a component is during merge, its aspects config/data consist of both: the current version and the merged version, as such, it's hard to know where to get the artifacts from. the current-version scope or the merged-version scope.
This PR attempts to go to the merged-scope first, and then to the current-version scope.

@davidfirst davidfirst merged commit c29c29f into master Oct 12, 2022
@davidfirst davidfirst deleted the unmerged-download-artifacts branch October 12, 2022 15:26
davidfirst added a commit that referenced this pull request Oct 14, 2022
Instead, on the client side, check whether some objects are missing and throw an error with details from all remotes.
Besides the improvement in the error-message (which now includes more data), this is a preparation for a future change of getting the same hashes from multiple remotes.
It's needed for cases like #6537. Where it's not clear in what scope the objects are. With this ability it's possible to ask from all candidate remotes for the objects, and only if it's missing from all of them it throws an error.
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