Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 2e79a15

Browse files
AugustKarlstedtAdinata Thayib
authored andcommitted
Update build_tar.py (bazelbuild#2171)
Update presubmit.yml Update BUILD Update BUILD revert some stuff from bazelbuild#2098 goldens n Revert "n" This reverts commit 8c094e7. Revert "goldens" This reverts commit ce1ff41. Revert "revert some stuff from bazelbuild#2098" This reverts commit afb5787. Revert "Update presubmit.yml" This reverts commit bf40dad.
1 parent 6d51727 commit 2e79a15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

container/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ filegroup(
2929
visibility = ["//visibility:public"],
3030
)
3131

32-
# TODO(xingao): Flip legacy_create_init to False if possible.
3332
py_binary(
3433
name = "build_tar",
3534
srcs = ["build_tar.py"],
36-
legacy_create_init = True,
35+
imports = ["."],
3736
python_version = "PY3",
3837
srcs_version = "PY2AND3",
3938
visibility = ["//visibility:public"],
@@ -46,6 +45,7 @@ py_library(
4645
"archive.py",
4746
"build_tar.py",
4847
],
48+
imports = ["."],
4949
srcs_version = "PY2AND3",
5050
visibility = ["//visibility:public"],
5151
)

container/build_tar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import tarfile
2929
import tempfile
3030

31-
from container import archive
31+
import archive
3232

3333
class TarFile(object):
3434
"""A class to generates a Docker layer."""

0 commit comments

Comments
 (0)