SonarSearch icon indicating copy to clipboard operation
SonarSearch copied to clipboard

Got issue when try to compile sonar server !

Open spookycheekybreeky opened this issue 2 years ago • 3 comments

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 avatar Jun 12 '22 15:06 spookycheekybreeky

also where is the source for the web api ? thx

spookycheekybreeky avatar Jun 12 '22 16:06 spookycheekybreeky

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

Cgboal avatar Jul 07 '22 17:07 Cgboal

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.

henshin avatar Aug 24 '22 15:08 henshin