Compilation failures
kjk opened this issue · 1 comments
kjk commented
When installing golucene with go get -u github.com/balzaczyy/golucene
I get the following compilation errors:
# github.com/balzaczyy/golucene/test_framework/index
go/src/github.com/balzaczyy/golucene/test_framework/index/random.go:31: undefined: SegmentCommitInfo
go/src/github.com/balzaczyy/golucene/test_framework/index/random.go:32: p.Writer undefined (type *MockRandomMergePolicy has no field or method Writer)
go/src/github.com/balzaczyy/golucene/test_framework/index/random.go:42: undefined: SegmentCommitInfo
go/src/github.com/balzaczyy/golucene/test_framework/index/random.go:56: undefined: SegmentCommitInfo
go/src/github.com/balzaczyy/golucene/test_framework/index/random.go:62: undefined: SegmentCommitInfo
go/src/github.com/balzaczyy/golucene/test_framework/index/random.go:91: undefined: SegmentCommitInfo
# github.com/balzaczyy/golucene/test_framework/search
go/src/github.com/balzaczyy/golucene/test_framework/search/similarity.go:85: undefined: hashstr
I understand that those might be in code that is not currently used/needed, but for someone trying to use golucence, they give the impression that the code is currently not working.
Ideally, running go build ./...
in top directory should not produce any errors
ironsweet commented
You are right. In migration from 4.5 to 4.9, I didn't pay full attention to the related test framework. I have disabled those codes temporarily to pass the 'go build'. Thanks for letting me know.