yaml-cpp icon indicating copy to clipboard operation
yaml-cpp copied to clipboard

BUILD file not found in directory '' of external repository @com_github_jbeder_yaml_cpp

Open LiVincent-Zhang opened this issue 5 years ago • 0 comments
trafficstars

I have build problem when I use bazel external dependency on yaml-cpp.

no such package '@com_github_jbeder_yaml_cpp//': BUILD file not found in directory '' of external repository @com_github_jbeder_yaml_cpp. Add a BUILD file to a directory to mark it as a package.

WORKSPACE

git_repository(
    name = "com_github_jbeder_yaml_cpp",
    remote = "https://github.com/yicm/yaml-cpp.git",
    commit = "9a3624205e8774953ef18f57067b3426c1c5ada6",
)

BUILD

cc_library(
    name = "config",
    srcs = [
        "config.cc"
    ],
    deps = [
        "@com_github_jbeder_yaml_cpp//:yaml-cpp"
    ]
)

LiVincent-Zhang avatar Nov 17 '20 00:11 LiVincent-Zhang