Skip to content

insights: commit search fails to deserialize

Created by: coury-clark

Backend insights defined to match on commits seem to fail to deserialize.

Query string: type:commit revert

The object is defined as a generic json.RawMessage so it seems to be failing when converting to commitSearchResult here

for query "type:commit revert count:all repo:^gerrit\.googlesource\.com/zoekt$@43b32ad40b09b4f4a48592f0a97227b8eb78d899": json: cannot unmarshal array into Go struct field commitSearchResult.Matches of type struct { Highlights []struct { Line int } }