hound
hound copied to clipboard
index directory with file://: does it work?
I have the following config:
{
"max-concurrent-indexers" : 2,
"dbpath" : "data",
"repos" : {
"LocalFolder" : {
"url" : "file:///etc"
}
}
}
with that configuration i try to start houndd as described
/ # id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
/ # /go/bin/houndd -conf /data/config.json
2016/10/13 10:00:24 Searcher started for LocalFolder
2016/10/13 10:00:24 Failed to clone file:///etc, see output below
Cloning into 'vcs-77abb6f59fba8f85b2b4d8f06e36d84d5fa2cc74'...
fatal: '/etc' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Continuing...
2016/10/13 10:00:24 exit status 128
2016/10/13 10:00:24 Some repos failed to index, see output above
2016/10/13 10:00:24 running server at http://localhost:6080...
So as You can see it fails. I built the docker container using the provided Dockerfile.
I think hound
tracks only repository directories.
fatal: '/etc' does not appear to be a git repository
fatal: Could not read from remote repository.
hey @lmount, thank you for your answer.. hmm in the documentation we have
Use the file:// protocol. This allows you to index any local folder, so you can clone the repository locally and then reference the files directly...
Reading that, I expect that regular directories containing files would be indexed.. no? Maybe a documentation problem?
I'm with you on this one. The documentation is not very clear, it should read:
Use the file:// protocol. This allows you to index any local repository and reference the files directly...
hey @lmount, if it is as you described, it doesn't fit my needs :-/ thank you anyway. I see there is an open git pull to solve it. I will keep my eyes on that!
I can confirm through my own experience that Hound will ignore/error on any folder it finds in the .config file which isn't a repository as Lampros showed above.
I solved this myself by simply creating an empty Visual studio solution and adding the files/folders I wished Hound to index to that solution.
I did ultimately push that solution to GitHub but Hound was able to index the folder prior to the push.
On Thu, 13 Oct 2016 at 18:25 Victor Pereira [email protected] wrote:
hey @lmount https://github.com/lmount, if it is as you described, it doesn't fit my needs :-/ thank you anyway. I see there is an open git pull to solve it. I will keep my eyes on that!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/etsy/hound/issues/226#issuecomment-253580377, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKN9XRMlRMZyoGrOw9L_DYWVE4GAL7Zks5qzmmPgaJpZM4KVtC2 .