orchestra icon indicating copy to clipboard operation
orchestra copied to clipboard

Improve error message when local commit doesn't match binary archive

Open AlviseDeFaveri opened this issue 4 years ago • 0 comments

If you have a local clone of a component that you are not building from source, orchestra still assumes that you want the commit that's locally checked out. Hence, if your local repository is not checked-out at the latest commit of the default branch, even if it is not listed among the build_from_source components, installing it will fail with an error message like:

Binary archive <THE_REPO>/<HASH>.tar.xz for <COMPONENT> not found. Try `orc update`

Proposed Solution

Improve the error message with an indication of whether there is a mismatch between the local checkd-out commit (and possibly branch) and the binary archive hash, suggesting to switch to the default branch and orc update if that is not the case.

AlviseDeFaveri avatar Dec 23 '21 10:12 AlviseDeFaveri