Skip to content

Commit

Permalink
Fully quality all deps in the shim
Browse files Browse the repository at this point in the history
Summary:
X-link: pytorch/executorch#3723

This is needed in case the shim is included as part of a submodule in order to correctly resolve dep locations.

Reviewed By: namanahuja

Differential Revision: D57746640

fbshipit-source-id: a63009449ea0cf1fd41125764d3dce063556e0a4
  • Loading branch information
bigfootjon authored and facebook-github-bot committed May 23, 2024
1 parent 2895748 commit c93b873
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion shim/buck2/buck_rust_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# of this source tree.

load(
"//:shims.bzl",
"@shim//:shims.bzl",
_rust_binary = "rust_binary",
)

Expand Down
2 changes: 1 addition & 1 deletion shim/buck2/proto_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# of this source tree.

load(
"//:shims.bzl",
"@shim//:shims.bzl",
_rust_protobuf_library = "rust_protobuf_library",
)

Expand Down
2 changes: 1 addition & 1 deletion shim/build_defs/cpp_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("//:shims.bzl", _cpp_binary = "cpp_binary")
load("@shim//:shims.bzl", _cpp_binary = "cpp_binary")

cpp_binary = _cpp_binary
2 changes: 1 addition & 1 deletion shim/build_defs/cpp_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("//:shims.bzl", _cpp_library = "cpp_library")
load("@shim//:shims.bzl", _cpp_library = "cpp_library")

cpp_library = _cpp_library
2 changes: 1 addition & 1 deletion shim/build_defs/cpp_unittest.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("//:shims.bzl", _cpp_unittest = "cpp_unittest")
load("@shim//:shims.bzl", _cpp_unittest = "cpp_unittest")

cpp_unittest = _cpp_unittest
2 changes: 1 addition & 1 deletion shim/build_defs/cython_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("//build_defs:python_library.bzl", "python_library")
load("@shim//build_defs:python_library.bzl", "python_library")

def cython_library(name, visibility = ["PUBLIC"], **_):
python_library(name = name, visibility = visibility)
2 changes: 1 addition & 1 deletion shim/build_defs/ocaml_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("//:shims.bzl", _ocaml_binary = "ocaml_binary")
load("@shim//:shims.bzl", _ocaml_binary = "ocaml_binary")

ocaml_binary = _ocaml_binary
2 changes: 1 addition & 1 deletion shim/build_defs/prebuilt_cpp_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("//:shims.bzl", _prebuilt_cpp_library = "prebuilt_cpp_library")
load("@shim//:shims.bzl", _prebuilt_cpp_library = "prebuilt_cpp_library")

prebuilt_cpp_library = _prebuilt_cpp_library
2 changes: 1 addition & 1 deletion shim/build_defs/rust_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("//:shims.bzl", _rust_binary = "rust_binary")
load("@shim//:shims.bzl", _rust_binary = "rust_binary")

rust_binary = _rust_binary
2 changes: 1 addition & 1 deletion shim/build_defs/rust_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("//:shims.bzl", _rust_library = "rust_library")
load("@shim//:shims.bzl", _rust_library = "rust_library")

rust_library = _rust_library
2 changes: 1 addition & 1 deletion shim/build_defs/rust_unittest.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("//:shims.bzl", _rust_unittest = "rust_unittest")
load("@shim//:shims.bzl", _rust_unittest = "rust_unittest")

rust_unittest = _rust_unittest
2 changes: 1 addition & 1 deletion shim/third-party/glog/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ oncall("open_source")
third_party_library(
name = "glog",
pkgconfig_name = "libglog",
deps = ["//third-party/gflags:gflags"],
deps = ["shim//third-party/gflags:gflags"],
)
2 changes: 1 addition & 1 deletion shim/third-party/rust/reindeer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ prebuilt_cxx_library = "third_party_rust_prebuilt_cxx_library"
buckfile_imports = """
load("@prelude//rust:cargo_buildscript.bzl", "buildscript_run")
load("@prelude//rust:cargo_package.bzl", "cargo")
load("//third-party/macros:rust_third_party.bzl", "third_party_rust_prebuilt_cxx_library")
load("@shim//third-party/macros:rust_third_party.bzl", "third_party_rust_prebuilt_cxx_library")
"""

0 comments on commit c93b873

Please sign in to comment.