My golang test pipeline crashes

stage: test
- GOPATH="/var/lib/gitlab-runner/go" GO111MODULE=on make test

The pipeline step above causes:

Failed to compile test: #

/var/lib/gitlab-runner/go/pkg/mod/ fatal error: pcap.h: No such file or directory

#include <pcap.h>
compilation terminated.

Anyone experiences with Golang test pipelines ? I have a feeling that this pipeline does not know that it needs to download pcap.h, any advice ?

I do not think this is related totest at all, it just seems as if something in your dependency tree requires the libpcap-devel package installed on the system.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.