You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is that the IF of the Parser being used by the Tool has changed, and since there is an argument with no argument, an error occurs at make time.
■Error detail
$ cd tools/schema
$ make
go get github.com/alecthomas/kingpin
go get github.com/alecthomas/participle
_/home/ec2-user/scalardb/tools/schema/internal/parser
internal/parser/parser.go:42:68: not enough arguments in call to participle.UseLookahead
have ()
want (int)
make: *** エラー 2
The problem was caused because the parser library released an update that contained breaking changes (the coded was working with 1.0 but the 2.0 was released 20 days ago).
Libraries are imported with go-get but it does not allow to specify a version or a branch tag.
install:
go get github.com/alecthomas/kingpin
go get github.com/alecthomas/participle
To import the dependencies with fixed version, we could use a tool such as dep.
The make would become:
install:
go get -u github.com/golang/dep/cmd/dep
dep ensure (will download the library for the project)
@yuriken27 I think this is now fixed with 74dba96 .
Can you check ?
feeblefakie
changed the title
Scalar DB Schema Tool make error because of IF of the parser tool changed.
Scalar DB Schema Tool fails due to parser tool updates.
Dec 14, 2018
Scalar DB Schema Tools can not be "make".
The reason is that the IF of the Parser being used by the Tool has changed, and since there is an argument with no argument, an error occurs at make time.
■Error detail
■Parser Tool
https://github.com/alecthomas/participle
The text was updated successfully, but these errors were encountered: