Skip to content

Commit

Permalink
[fbsource] Fix BUCK load paths to use package form
Browse files Browse the repository at this point in the history
Summary: This diff rewrites `load("//foo/bar.bzl")` to `load("//foo:bar.bzl")`.

Test Plan: Visual inspection and CI

Reviewed By: mzlee

Differential Revision: D67465782

fbshipit-source-id: f7c802ff1b46945d172477d69a5c03c1e83a8031
  • Loading branch information
zertosh authored and facebook-github-bot committed Dec 20, 2024
1 parent 2fec024 commit f828c10
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion antlir/antlir2/bzl/feature/feature.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ load("//antlir/antlir2/features/tarball:tarball.bzl", "tarball_rule")
load("//antlir/antlir2/features/test_only_features/trace:trace.bzl", "trace_rule")
load("//antlir/antlir2/features/user:user.bzl", "user_rule")
load("//antlir/antlir2/features/usermod:usermod.bzl", "usermod_rule")
load("//antlir/bzl:build_defs.bzl", "config")
load("//antlir/bzl:flatten.bzl", "flatten")
load("//antlir/bzl:types.bzl", "types")
load("//antlir/bzl/build_defs.bzl", "config")
load(":cfg.bzl", "feature_cfg")

_ANTLIR_STRICT_TYPE_CHECKS = native.read_config("antlir", "strict-type-checks")
Expand Down
2 changes: 1 addition & 1 deletion antlir/antlir2/bzl/image/layer.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ load(
load("//antlir/antlir2/os:package.bzl", "get_default_os_for_package", "should_all_images_in_package_use_default_os")
# @oss-disable
load("//antlir/antlir2/package_managers/dnf/rules:repo.bzl", "RepoInfo", "RepoSetInfo")
load("//antlir/bzl:build_defs.bzl", "config", "get_visibility")
load("//antlir/bzl:constants.bzl", "REPO_CFG")
load("//antlir/bzl:internal_external.bzl", "is_facebook")
load("//antlir/bzl:types.bzl", "types")
load("//antlir/bzl/build_defs.bzl", "config", "get_visibility")
load(":cfg.bzl", "attrs_selected_by_cfg", "cfg_attrs", "layer_cfg")
load(":depgraph.bzl", "build_depgraph")
load(":facts.bzl", "facts")
Expand Down
2 changes: 1 addition & 1 deletion antlir/antlir2/bzl/package/macro.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ load("//antlir/antlir2/antlir2_rootless:package.bzl", "get_antlir2_rootless")
load("//antlir/antlir2/bzl:platform.bzl", "default_target_platform_kwargs")
load("//antlir/antlir2/bzl:selects.bzl", "selects")
load("//antlir/antlir2/os:package.bzl", "get_default_os_for_package", "should_all_images_in_package_use_default_os")
load("//antlir/bzl/build_defs.bzl", "get_visibility")
load("//antlir/bzl:build_defs.bzl", "get_visibility")

def package_macro(
buck_rule,
Expand Down
2 changes: 1 addition & 1 deletion antlir/antlir2/bzl/platform.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

load("//antlir/bzl/build_defs.bzl", "config")
load("//antlir/bzl:build_defs.bzl", "config")

def rule_with_default_target_platform(rule_fn):
def _wrapped(**kwargs):
Expand Down

0 comments on commit f828c10

Please sign in to comment.