Skip to content

Commit 09726b3

Browse files
committed
Move filetype to skylib/
1 parent 5178ef0 commit 09726b3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

container/image.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ expectation in such cases is that users will write something like:
4040
"""
4141

4242
load(
43-
"//docker:filetype.bzl",
43+
"//skylib:filetype.bzl",
44+
container_filetype = "container",
4445
deb_filetype = "deb",
45-
docker_filetype = "docker",
4646
tar_filetype = "tar",
4747
)
4848
load(
@@ -304,7 +304,7 @@ def _impl(ctx, files=None, file_map=None, empty_files=None, directory=None,
304304
docker_parts = container_parts)
305305

306306
_attrs = {
307-
"base": attr.label(allow_files = docker_filetype),
307+
"base": attr.label(allow_files = container_filetype),
308308
"data_path": attr.string(),
309309
"directory": attr.string(default = "/"),
310310
"tars": attr.label_list(allow_files = tar_filetype),

container/import.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"""Rule for importing a container image."""
1515

1616
load(
17-
"//docker:filetype.bzl",
17+
"//skylib:filetype.bzl",
1818
tgz_filetype = "tgz",
1919
)
2020
load(

docker/filetype.bzl renamed to skylib/filetype.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ deb = [
2929
".udeb",
3030
]
3131

32-
# Docker files are tarballs, should we allow other extensions than tar?
33-
docker = tar
32+
# Container images are tarballs (when exported).
33+
container = tar

0 commit comments

Comments
 (0)