-
Notifications
You must be signed in to change notification settings - Fork 10
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
Local best cli runs on master but no other branches for lwc-example #223
Comments
Update: it looks like the name of the local branch doesn't matter, I changed my This is my setup:
So best cli fails unless the current branch is tracking |
I can't seem to reproduce this, when I try to run the lwc-example benchmarks it works fine. I tried both in Could there be something weird in your git config or setup? It seems that Best cannot read your git configurations properly. |
I tried a fresh checkout of best repo and the condition is that the current branch has to be tracking something that is not
best runs fine on branch |
But given the conditions, this is a low priority issue because there is a workaround. |
Are you saying that the issue only happens when you have multiple local branches pointing to the same remote master? |
Mh, no, even one branch causes the error, I just pulled new master from best and these are the simplest repro steps I was able to come up with: Do this while on
This yields
|
I was able to reproduce as well. I think I am understanding this better now. So this is happening when you create a local branch that tracks another local branch. I am un-aware if this is very common behavior or not, as I have never needed to do this. I will see what I can do to figure out a fix though. |
Thanks, I know tracking a local branch makes no sense, this was just my simplest repro steps, I saw this error without tracking a local branch but I don't remember what I did, my hope is that the scenario will help you identify a problem which is not specific or related to tracking local branches. And like I said before, there is a workaround so this is not a high priority. |
Summary
I first identified this problem in the Locker repo, but I was able to reproduce it in the Best repo itself.
After checking out the Best repo and building, I did
cd packages/lwc-example
and ranyarn start
and the tests ran fine. The current branch wasmaster
.But when I created a branch
foo
(from master) and switched, runningyarn start
yields:Simply switching back to
master
and runningyarn start
again, the tests run fine.This seems to be related to #184
Versions
The text was updated successfully, but these errors were encountered: