src-d / borges

borges collects and stores Git repositories.
https://docs.sourced.tech/borges/
GNU General Public License v3.0
52 stars 20 forks source link

borges pack fails with "feature not supported" #309

Closed campoy closed 6 years ago

campoy commented 6 years ago

After installing borges in a brand new VM borges pack fails with the repos.txt below:

https://github.com/src-d/borges

Below the logs:

➜ borges pack --file=repos.txt
[2018-06-18T20:44:18.759639351-07:00] ERROR error pushing changes to rooted repository endpoint=https://github.com/src-d/borges error=push to rooted repo f281ab6f2e0e38dcc3af05360667d8f530c00103 failed: feature not supported

github.com/src-d/borges.(*Archiver).pushChangesToRootedRepositories
    /Users/francesc/src/github.com/src-d/borges/archiver.go:322
github.com/src-d/borges.(*Archiver).doPush
    /Users/francesc/src/github.com/src-d/borges/archiver.go:220
github.com/src-d/borges.(*Archiver).do
    /Users/francesc/src/github.com/src-d/borges/archiver.go:159
github.com/src-d/borges.(*Archiver).Do
    /Users/francesc/src/github.com/src-d/borges/archiver.go:103
github.com/src-d/borges.NewArchiverWorkerPool.func1
    /Users/francesc/src/github.com/src-d/borges/archiver.go:602
github.com/src-d/borges.(*Worker).Start.func2
    /Users/francesc/src/github.com/src-d/borges/worker.go:63
runtime.goexit
    /Users/francesc/go/src/runtime/asm_amd64.s:2361 job=01641624-7570-8bb8-b941-0c23766b8aa3 root=f281ab6f2e0e38dcc3af05360667d8f530c00103
[2018-06-18T20:44:18.824499881-07:00] ERROR job finished with error error=repository processed with errors: archiving 1 out of 1 roots failed: f281ab6f2e0e38dcc3af05360667d8f530c00103

github.com/src-d/borges.(*Archiver).doPush
    /Users/francesc/src/github.com/src-d/borges/archiver.go:223
github.com/src-d/borges.(*Archiver).do
    /Users/francesc/src/github.com/src-d/borges/archiver.go:159
github.com/src-d/borges.(*Archiver).Do
    /Users/francesc/src/github.com/src-d/borges/archiver.go:103
github.com/src-d/borges.NewArchiverWorkerPool.func1
    /Users/francesc/src/github.com/src-d/borges/archiver.go:602
github.com/src-d/borges.(*Worker).Start.func2
    /Users/francesc/src/github.com/src-d/borges/worker.go:63
runtime.goexit
    /Users/francesc/go/src/runtime/asm_amd64.s:2361 job=01641624-7570-8bb8-b941-0c23766b8aa3
[2018-06-18T20:44:18.824567744-07:00] ERROR error on job error=repository processed with errors: archiving 1 out of 1 roots failed: f281ab6f2e0e38dcc3af05360667d8f530c00103

github.com/src-d/borges.(*Archiver).doPush
    /Users/francesc/src/github.com/src-d/borges/archiver.go:223
github.com/src-d/borges.(*Archiver).do
    /Users/francesc/src/github.com/src-d/borges/archiver.go:159
github.com/src-d/borges.(*Archiver).Do
    /Users/francesc/src/github.com/src-d/borges/archiver.go:103
github.com/src-d/borges.NewArchiverWorkerPool.func1
    /Users/francesc/src/github.com/src-d/borges/archiver.go:602
github.com/src-d/borges.(*Worker).Start.func2
    /Users/francesc/src/github.com/src-d/borges/worker.go:63
runtime.goexit
    /Users/francesc/go/src/runtime/asm_amd64.s:2361 worker=0

It seems like the error fails while trying to push the siva file to https://github.com/src-d/borges? Am I holding this wrong?

ajnavarro commented 6 years ago

I guess you are compiling from source code instead of using a binary from release page, right?

To do that, right now you need to add a special flag when building, to make go-git compatible with filesystems that only allows read or write, not both at the same time (in this case we are using go-billy-siva as filesystem):

-tags norwfs

We are preparing a PR to avoid that on go-git: https://github.com/src-d/go-git/pull/864

campoy commented 6 years ago

I'll close as duplicated of src-d/go-git#864 then