Cgboal / SonarSearch

A rapid API for the Project Sonar dataset
MIT License
641 stars 96 forks source link

Got issue when try to compile sonar server ! #48

Open spookycheekybreeky opened 2 years ago

spookycheekybreeky commented 2 years ago

when i try to bluid the crobat-server

go build -tags=go_json -o bin/crobat-server ./cmd/crobat-server

i got this error "cmd/crobat-server/grpc/server.go:77:25: unknown field 'IPv4' in struct literal of type "github.com/cgboal/sonarsearch/proto".Domain (but does have Ipv4)"

any help ? thx

spookycheekybreeky commented 2 years ago

also where is the source for the web api ? thx

Cgboal commented 2 years ago

The source for the web api is in that cmd/crobat-server directory. Try using the makefile to compile

henshin commented 2 years ago

There's a typo on the server.go file related to the structure field names. Replace IPv4 with Ipv4 on the server.go file and it will compile without issues.