I'm trying to build a static go_binary() that use a go library (github.com/GRbit/go-pcre) that use cgo.
I put the c_library() of libpcre as a dependency of the go_repo(), patched go_repo() to use it instead relying on pkg-config, but the generated BUILD file in this subrepo did not contains the dependency in the cgo_library() and make it fail with a missing header.
I managed to make it works by manually add the c_library() dependency to the cgo_library() in the BUILD file in plz-out/subrepos/third_party/go/github.com_GRbit_go-pcre/BUILD.
Can please_go add this dependency automatically?
I'm trying to build a static
go_binary()that use a go library (github.com/GRbit/go-pcre) that use cgo.I put the
c_library()of libpcre as a dependency of thego_repo(), patchedgo_repo()to use it instead relying on pkg-config, but the generated BUILD file in this subrepo did not contains the dependency in thecgo_library()and make it fail with a missing header.I managed to make it works by manually add the
c_library()dependency to thecgo_library()in theBUILDfile inplz-out/subrepos/third_party/go/github.com_GRbit_go-pcre/BUILD.Can
please_goadd this dependency automatically?