DRahn Medaglia133175 (Community Member) asked a question.

Does Golang static analysis support libs that wrap C libraries?

Specifically, I'm using a wrapper library to ZeroMQ, which is great. However, veracode says there's an error in the uploaded package file. There does not seem to be a way to include the C code in the vendor packages. The instructions actually state non-go files should be removed.

 

Here's the trace:

 

Support Issue (fatal): Parse failure: Error:

Sourcefile errors in the archive

 

Trace:

services/network/vendor/github.com/pebbe/zmq4/reactor.go:10:4: undefined: State

services/network/vendor/github.com/pebbe/zmq4/reactor.go:11:9: undefined: State

services/network/vendor/github.com/pebbe/zmq4/reactor.go:21:16: undefined: Socket

services/network/vendor/github.com/pebbe/zmq4/reactor.go:23:12: undefined: Poller

services/network/vendor/github.com/pebbe/zmq4/reactor.go:61:34: undefined: Socket

services/network/vendor/github.com/pebbe/zm


Topics (4)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.