Closed PeterBocan closed 3 weeks ago
When using go_repo
, a subrepo is generated for the third party library. Your dependency should be something like "///third_party/go/gopkg.in_yaml.v3//:yaml.v3"
.
I recommend making use of Puku, as it will configure your dependencies for you
To add to what @toastwaffle said, if you prefer a UX closer to how go_module()
works, you can add the packages you want to the install list and then depend on //third_party/go:yaml.v3
:
go_repo(
name = "yaml.v3",
module = "gopkg.in/yaml.v3",
install = ["."],
version = "v3.0.1",
visibility = ["PUBLIC"],
)
but puku fmt -w
will update your build files automatically for you :D
Hello peeps, I am struggling to reason why the
go_repo
is not being correctly registered in the build graph. (Please version: 17.12.1)my
third_party/go/BUILD
is as follows:and
query alltargets
says:It is very similar to #3084