Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with internal change #1578

Merged
merged 1 commit into from
Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "image_bzl",
srcs = ["image.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "cc_bzl",
srcs = ["cc.bzl"],
visibility = ["//visibility:private"],
)
63 changes: 63 additions & 0 deletions contrib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0
Expand Down Expand Up @@ -57,3 +60,63 @@ alias(
"//conditions:default": "@structure_test_linux//file",
}),
)

bzl_library(
name = "push-all_bzl",
srcs = ["push-all.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "with-tag_bzl",
srcs = ["with-tag.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "repro_test_bzl",
srcs = ["repro_test.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "compare_ids_test_bzl",
srcs = ["compare_ids_test.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "with-defaults_bzl",
srcs = ["with-defaults.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "test_bzl",
srcs = ["test.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "rename_image_bzl",
srcs = ["rename_image.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "group_bzl",
srcs = ["group.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "dockerfile_build_bzl",
srcs = ["dockerfile_build.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "passwd_bzl",
srcs = ["passwd.bzl"],
visibility = ["//visibility:private"],
)
9 changes: 9 additions & 0 deletions d/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "image_bzl",
srcs = ["image.bzl"],
visibility = ["//visibility:private"],
)
21 changes: 21 additions & 0 deletions go/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "go_bzl",
srcs = ["go.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "image_bzl",
srcs = ["image.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "static_bzl",
srcs = ["static.bzl"],
visibility = ["//visibility:private"],
)
9 changes: 9 additions & 0 deletions groovy/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "image_bzl",
srcs = ["image.bzl"],
visibility = ["//visibility:private"],
)
21 changes: 21 additions & 0 deletions java/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "jetty_bzl",
srcs = ["jetty.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "java_bzl",
srcs = ["java.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "image_bzl",
srcs = ["image.bzl"],
visibility = ["//visibility:private"],
)
9 changes: 9 additions & 0 deletions oci/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "oci_bzl",
srcs = ["oci.bzl"],
visibility = ["//visibility:private"],
)
15 changes: 15 additions & 0 deletions python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0
Expand All @@ -31,3 +34,15 @@ py_runtime(
interpreter_path = "/usr/bin/python2",
python_version = "PY2",
)

bzl_library(
name = "python_bzl",
srcs = ["python.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "image_bzl",
srcs = ["image.bzl"],
visibility = ["//visibility:private"],
)
15 changes: 15 additions & 0 deletions python3/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "image_bzl",
srcs = ["image.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "python3_bzl",
srcs = ["python3.bzl"],
visibility = ["//visibility:private"],
)
39 changes: 39 additions & 0 deletions repositories/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,45 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "pip_repositories_bzl",
srcs = ["pip_repositories.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "go_repositories_bzl",
srcs = ["go_repositories.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "repositories_bzl",
srcs = ["repositories.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "images_bzl",
srcs = ["images.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "deps_bzl",
srcs = ["deps.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "py_repositories_bzl",
srcs = ["py_repositories.bzl"],
visibility = ["//visibility:private"],
)
9 changes: 9 additions & 0 deletions rust/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "image_bzl",
srcs = ["image.bzl"],
visibility = ["//visibility:private"],
)
9 changes: 9 additions & 0 deletions scala/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

bzl_library(
name = "image_bzl",
srcs = ["image.bzl"],
visibility = ["//visibility:private"],
)
13 changes: 13 additions & 0 deletions testdata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
load("@npm_bazel_typescript//:index.bzl", "ts_library")
Expand Down Expand Up @@ -1072,3 +1073,15 @@ container_push(
tag = "{BUILD_USER}",
tags = ["manual"],
)

bzl_library(
name = "stamp_info_bzl",
srcs = ["stamp_info.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "utils_bzl",
srcs = ["utils.bzl"],
visibility = ["//visibility:private"],
)
7 changes: 7 additions & 0 deletions testdata/pause_piecemeal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//container:container.bzl", "container_import")
load("//testdata/pause_piecemeal:layers.bzl", "PAUSE_LAYERS")

Expand Down Expand Up @@ -44,3 +45,9 @@ container_import(
config = ":pause_config.json",
layers = ["%s.tar" % x for x in PAUSE_LAYERS],
)

bzl_library(
name = "layers_bzl",
srcs = ["layers.bzl"],
visibility = ["//visibility:private"],
)
19 changes: 19 additions & 0 deletions tests/container/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load(
"@bazel_tools//tools/build_rules:test_rules.bzl",
"file_test",
Expand Down Expand Up @@ -855,3 +856,21 @@ pull_info_validation_test(
)

# END_DO_NOT_IMPORT

bzl_library(
name = "apple_bzl",
srcs = ["apple.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "empty_layers_bzl",
srcs = ["empty_layers.bzl"],
visibility = ["//visibility:private"],
)

bzl_library(
name = "pull_info_validation_test_bzl",
srcs = ["pull_info_validation_test.bzl"],
visibility = ["//visibility:private"],
)