You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 theBUILD
file inplz-out/subrepos/third_party/go/github.com_GRbit_go-pcre/BUILD
.Can
please_go
add this dependency automatically?The text was updated successfully, but these errors were encountered: