-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
When add bazel lib reference in my repo like:
http_archive(
name = "com_github_jbeder_yaml_cpp",
sha256 = "77ea1b90b3718aa0c324207cb29418f5bced2354c2e483a9523d98c3460af1ed",
strip_prefix = "yaml-cpp-yaml-cpp-0.6.3",
urls = [
"https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.6.3.tar.gz",
],
)
And then run bazel build ...
I got errors:
C:\Users\songy\tuware>bazel build ...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Writing tracer profile to 'C:/users/songy/_bazel_songy/n435ocyg/command.profile.gz'
ERROR: C:/users/songy/tuware/cluster/BUILD:8:1: 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. and referenced by '//cluster:cluster_test'
ERROR: Analysis of target '//cluster:cluster_test' failed; build aborted: 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.
INFO: Elapsed time: 12.647s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (15 packages loaded, 59 targets configured)
When I check the release source code: https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.6.3.tar.gz, the build file is not included.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
