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
❯ plz build //...
Build stopped after 230ms. 1 target failed:
//pkg/project:project
Error building target //pkg/project:project: exit status 1
pkg/project/project.go, line 8, column 7: could not import gopkg.in/yaml.v3 (open : no such file or directory)
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
The text was updated successfully, but these errors were encountered: