Skip to content

Commit

Permalink
chore: Use label for relative path to fix bazel build
Browse files Browse the repository at this point in the history
The error was

ERROR: /home/runner/work/l10nmessages/l10nmessages/examples/bazel-local/BUILD:14:12: //:l10nbazel depends on @@l10nmessages_local//:l10nmessages in repository @@l10nmessages_local which failed to fetch. no such package '@@l10nmessages_local//': /home/runner/work/l10nmessages/l10nmessages/examples/bazel-local/external/l10nmessages_local_maven.BUILD.bzl is not a regular file; if you're using a relative or absolute path for `build_file` in your `new_local_repository` rule, please switch to using a label instead
  • Loading branch information
aurambaj committed Jan 16, 2024
1 parent d9a5267 commit bee6ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/bazel-icu-local/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea1
new_local_repository(
name = "l10nmessages_local",
path = "../../",
build_file = "l10nmessages_local_maven.BUILD.bzl",
build_file = "@//:l10nmessages_local_maven.BUILD.bzl",
)

http_archive(
Expand Down
2 changes: 1 addition & 1 deletion examples/bazel-local/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea1
new_local_repository(
name = "l10nmessages_local",
path = "../../",
build_file = "l10nmessages_local_maven.BUILD.bzl",
build_file = "@//:l10nmessages_local_maven.BUILD.bzl",
)

http_archive(
Expand Down

0 comments on commit bee6ef0

Please sign in to comment.