Skip to content

Commit d7e7a70

Browse files
adamshapiro0bhers4
authored andcommitted
Use GNU tar format by default.
The default PAX format has issues with long file paths. If the complete path to a file, including the package_dir prefix, exceeds 100 characters, Python will incorrectly truncate it so the resulting path within the tar file does not have the package_dir prefix. For example: File: path/to/file.txt Package dir: my_dir Expected path: my_dir/path/to/file.txt Resulting path: path/to/file.txt (if expected path > 100 chars)
1 parent a9bd96e commit d7e7a70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pkg/private/tar/tar.bzl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pkg_tar_impl = rule(
247247
doc = """Obsolete. Do not use.""",
248248
allow_files = True,
249249
),
250-
"format": attr.string(default = "DEFAULT"),
250+
"format": attr.string(default = "GNU"),
251251
"mode": attr.string(),
252252
"modes": attr.string_dict(),
253253
"mtime": attr.int(default = _DEFAULT_MTIME),

0 commit comments

Comments
 (0)