Coder Social home page Coder Social logo

Comments (8)

manuel-jasso avatar manuel-jasso commented on July 29, 2024

Update: it looks like the name of the local branch doesn't matter, I changed my foo branch to track github/master and then yarn start worked fine! 🤷🏻‍♂️

This is my setup:

manuel.jasso@manueljasso-ltm ~/dev/github/best/packages/lwc-example (foo)
$ git branch -vv
* foo    0c1ef01 [github/master] feat: rewrite of Agents, Hubs, Remotes and Algo (#217)
  master 0c1ef01 [github/master] feat: rewrite of Agents, Hubs, Remotes and Algo (#217)

So best cli fails unless the current branch is tracking master on the remote.

from best.

jasonsilberman avatar jasonsilberman commented on July 29, 2024

I can't seem to reproduce this, when I try to run the lwc-example benchmarks it works fine.

I tried both in master and in a brand new branch that i just created, both worked fine.

Could there be something weird in your git config or setup? It seems that Best cannot read your git configurations properly.

from best.

manuel-jasso avatar manuel-jasso commented on July 29, 2024

I tried a fresh checkout of best repo and the condition is that the current branch has to be tracking something that is not [origin/master], this is my fresh setup (do this while on master):

git branch --track bad
git branch good
git branch -vv
  bad    0c1ef01 [master] feat: rewrite of Agents, Hubs, Remotes and Algo (#217)
* good   0c1ef01 feat: rewrite of Agents, Hubs, Remotes and Algo (#217)
  master 0c1ef01 [origin/master] feat: rewrite of Agents, Hubs, Remotes and Algo (#217)

best runs fine on branch good (which tracks nothing) and branch master (which tracks [origin/master]) but fails on branch bad (which tracks [master])

from best.

manuel-jasso avatar manuel-jasso commented on July 29, 2024

But given the conditions, this is a low priority issue because there is a workaround.

from best.

jasonsilberman avatar jasonsilberman commented on July 29, 2024

Are you saying that the issue only happens when you have multiple local branches pointing to the same remote master?

from best.

manuel-jasso avatar manuel-jasso commented on July 29, 2024

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 master (after a fresh build):

git branch --track bad
git checkout bad
cd packages/lwc-example/
yarn start

This yields

Looking for Best configurations...[WARN] - Unable to get git information

  ERROR     Error: Unable to read git information
    at generateProjectConfigs (/Users/manuel.jasso/dev/github/best/packages/@best/config/build/index.js:17:19)
    at readConfig (/Users/manuel.jasso/dev/github/best/packages/@best/config/build/index.js:77:45)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

from best.

jasonsilberman avatar jasonsilberman commented on July 29, 2024

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.

from best.

manuel-jasso avatar manuel-jasso commented on July 29, 2024

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.

from best.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.