<#19984 Include `go_binary` output when running an...
# github-notifications
c
#19984 Include `go_binary` output when running another `go_binary` New discussion created by drone-ah Hi, I have a main
go_binary
that needs the output from another
go_binary
module to be included. The module binary is zipped up and uploaded into aws lambda by the main go binary. I've tried:
main/BUILD
Copy code
go_binary(
    name="main",
)

go_mod()

go_package(
    name="pulumi",
    dependencies=['path/to/module:lambda']
)
module/BUILD
Copy code
go_binary(
    name="lambda",
)

go_mod()

go_package(
    name="module_lambda",
)
I've also tried the following targets instead of `lambda`: •
module_lambda
module.go:lambda
with no luck. I debugged by outputting all the files in the executable path, but also by using
keep-sandboxes" and inspecting the directory afterwards. It only contains the
main` binary :( What am I doing wrong? PS: I have successfully used something like this with python and that seemed to work pantsbuild/pants