nelhage / llama

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project is unable to be build

s-peryt opened this issue · comments

I really like the idea behind the project especially for big source bases like various compilers or OSs. The problem I'm facing unfortunately is with regards to building it successfully.

I have tried both of recommended ways in README and both have some issues. In case of 2nd approach

go install ./...
which I updated to go get …, but still end up in fixing a ton of dependency issues with go.mod. Sorry, I'm not familiar with Go to resolve issues from ground up so I've been fixing issues as they appear. Eventually end up with huge go.mod, which is still incomplete, because errors still appear.

As for the 1st approach of downloading it I'm also getting errors. Currently this is the error output I see:

$ go get -u github.com/nelhage/llama/cmd/...
go: downloading github.com/apache/thrift/lib/go/thrift v0.0.0-20210120171102-e27e82c46ba4
go: downloading golang.org/x/net v0.0.0-20210614182718-04defd469f4e
go: downloading golang.org/x/text v0.3.6
# github.com/fraugster/parquet-go/parquet
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:760:36: not enough arguments in call to iprot.ReadStructBegin
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:765:55: not enough arguments in call to iprot.ReadFieldBegin
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:779:25: not enough arguments in call to iprot.Skip
	have (thrift.TType)
	want (context.Context, thrift.TType)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:838:31: not enough arguments in call to iprot.ReadFieldEnd
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:842:31: not enough arguments in call to iprot.ReadStructEnd
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:849:31: not enough arguments in call to iprot.ReadBinary
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:858:31: not enough arguments in call to iprot.ReadBinary
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:867:28: not enough arguments in call to iprot.ReadI64
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:876:28: not enough arguments in call to iprot.ReadI64
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:885:31: not enough arguments in call to iprot.ReadBinary
	have ()
	want (context.Context)
../../../go/pkg/mod/github.com/nelhage/parquet-go@v0.3.1-0.20210416231405-1e924319d941/parquet/parquet.go:885:31: too many errors

Would you be so kind and recommend how I can build this project to test it out?
Thanks!

Thanks for the report! I just merged #59 which should make

go install github.com/nelhage/llama/cmd/...@latest

work (and updates the README to recommend using that method of installation).

If that doesn't work for you, try

GOPROXY=direct go install -v github.com/nelhage/llama/cmd/...@latest

which may be necessary until https://proxy.golang.org/ picks up the latest commit.