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

Gitbase does not load repositories for a workdir with unauthorized sub-dirs #250

Open
smacker opened this Issue Mar 4, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@smacker
Copy link
Member

smacker commented Mar 4, 2019

If I use path C:\Users\Windows10\Documents for keeping my repositories engine always returns 0 results for any sql query.

Please check details here: src-d/empathy-sessions#35

@se7entyse7en

This comment has been minimized.

Copy link
Member

se7entyse7en commented Mar 5, 2019

Copying here relevant screenshots and comments from src-d/empathy-sessions#35:

@smacker I did some very quick tests. I remembered that I tried with a repo in C:\Users\Windows10\go\src\github.com\src-d\engine. And by initializing engine C:\Users\Windows10\go it actually works as expected (both CLI and web), but it doesn't if engine is initialized with C:\Users\Windows:

screenshot 2019-03-04 at 13 18 14

Similarly happens by initializing engine with C:\Users\Windows\Documents. So it seems that it misbehaves depending on the workdir. At a glance, I don't see any particular pattern though.

In both cases the directory is correctly mounted. Shouldn't gitbase be able to find it anyway?

screenshot 2019-03-04 at 14 02 46

@se7entyse7en se7entyse7en self-assigned this Mar 5, 2019

@se7entyse7en

This comment has been minimized.

Copy link
Member

se7entyse7en commented Mar 5, 2019

This is what happened on gitbase. The path seems to be correctly mounted as it is possible to see the repo in the mounted path, but then the path cannot be inspected.

screenshot 2019-03-05 at 13 10 33

@se7entyse7en

This comment has been minimized.

Copy link
Member

se7entyse7en commented Mar 5, 2019

This should be fixed once src-d/gitbase#718 is closed.

@se7entyse7en se7entyse7en removed their assignment Mar 5, 2019

@carlosms carlosms changed the title Engine doesn't work on windows Gitbase does not load repositories for a workdir with unauthorized sub-dirs Mar 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.