Skip to content

Commit

Permalink
chore: sort loads
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Sep 28, 2023
1 parent 4db8e7b commit 7cf5389
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 6 deletions.
18 changes: 15 additions & 3 deletions aws/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,29 @@ bzl_library(
],
)

bzl_library(
name = "extensions",
srcs = ["extensions.bzl"],
visibility = ["//visibility:public"],
deps = [":repositories"],
)

bzl_library(
name = "defs",
srcs = ["defs.bzl"],
visibility = ["//visibility:public"],
deps = [
"//aws/private:py_lambda",
"@rules_oci//oci:defs",
"@rules_python//python:defs_bzl",
],
)

bzl_library(
name = "extensions",
srcs = ["extensions.bzl"],
name = "repositories.oci",
srcs = ["repositories.oci.bzl"],
visibility = ["//visibility:public"],
deps = [":repositories"],
deps = ["@rules_oci//oci:pull"],
)

bzl_library(
Expand Down
2 changes: 1 addition & 1 deletion aws/defs.bzl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"Public API re-exports"

load("@rules_oci//oci:defs.bzl", "oci_image")
load("//aws/private:py_lambda.bzl", "py_lambda_tars")
load("@rules_python//python:defs.bzl", "py_binary")
load("//aws/private:py_lambda.bzl", "py_lambda_tars")

def aws_py_lambda(name, entry_point = "lambda_function.py", deps = [], base = "@aws_lambda_python"):
"""Defines a Lambda run on the Python runtime.
Expand Down
9 changes: 9 additions & 0 deletions aws/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ bzl_library(
srcs = ["resolved_toolchain.bzl"],
visibility = ["//aws:__subpackages__"],
)

bzl_library(
name = "py_lambda",
srcs = [
"py_lambda.bzl",
"@rules_pkg//pkg:bzl_srcs",
],
visibility = ["//aws:__subpackages__"],
)
2 changes: 1 addition & 1 deletion examples/cli/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@aspect_bazel_lib//lib:testing.bzl", "assert_contains")
load("@aspect_bazel_lib//lib:transitions.bzl", "platform_transition_filegroup")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_tarball")
load("@rules_pkg//:pkg.bzl", "pkg_tar")

# Demonstrates that you can use the CLI in a genrule.
# The toolchain provides a "Make variable" named AWS_CLI_BIN that you can expand.
Expand Down
2 changes: 1 addition & 1 deletion examples/python_lambda/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"Example Python AWS lambda using a container"

load("@aspect_rules_aws//aws:defs.bzl", "aws_py_lambda")
load("@pip//:requirements.bzl", "requirement")
load("@rules_oci//oci:defs.bzl", "oci_tarball")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
load("@pip//:requirements.bzl", "requirement")

compile_pip_requirements(
name = "requirements",
Expand Down

0 comments on commit 7cf5389

Please sign in to comment.