Skip to content

Commit 551e9fc

Browse files
bm1549claude
andcommitted
fix: use repo_name alias for yaml-cpp Bazel dependency
Bazel's bzlmod may have issues with hyphens in module names when resolving targets. Use repo_name = "yaml_cpp" to create a clean alias. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 0119aae commit 551e9fc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,6 @@ cc_library(
157157
deps = [
158158
"@com_google_absl//absl/strings",
159159
"@com_google_absl//absl/types:optional",
160-
"@yaml-cpp//:yaml-cpp",
160+
"@yaml_cpp//:yaml-cpp",
161161
],
162162
)

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ bazel_dep(name = "abseil-cpp", version = "20260107.1", repo_name = "com_google_a
77
bazel_dep(name = "bazel_skylib", version = "1.9.0")
88
bazel_dep(name = "platforms", version = "1.0.0")
99
bazel_dep(name = "rules_cc", version = "0.2.17")
10-
bazel_dep(name = "yaml-cpp", version = "0.8.0")
10+
bazel_dep(name = "yaml-cpp", version = "0.8.0", repo_name = "yaml_cpp")

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ http_archive(
4141
)
4242

4343
http_archive(
44-
name = "yaml-cpp",
44+
name = "yaml_cpp",
4545
sha256 = "fbe74bbdcee21d656715688706da3c8becfd946d92cd44705cc6098bb23b3a16",
4646
strip_prefix = "yaml-cpp-0.8.0",
4747
urls = ["https://github.com/jbeder/yaml-cpp/archive/refs/tags/0.8.0.tar.gz"],

0 commit comments

Comments
 (0)