I can't find @ Repo. #23489
-
|
I'm going to take skia from git and add it to dependency. # MODULE.bazel
module(name = "example", version = "0.1.0")
bazel_dep(name = "rules_license", version = "0.0.8")
git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "local_repository")
git_repository(
name = "skia",
remote = "https://skia.googlesource.com/skia.git",
branch = "chrome/m127",
)
local_repository(
name = "skia_user_config",
path = "custom_skia_config",
)
skia_deps = use_extension("@skia//bazel:deps.bzl", "bazel_deps")
skia_deps.bazel_deps()
skia_deps.c_plus_plus_deps()
skia_deps.header_based_configs() |
Beta Was this translation helpful? Give feedback.
Answered by
meteorcloudy
Sep 9, 2024
Replies: 1 comment
-
|
The repo used in |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pdom0327
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The repo used in
use_extensionhas to be a Bazel module, so you cannot introduce it as agit_repository. Can you try to turn skia into a Bazel module?