Skip to content

Commit

Permalink
refactor: use _mtree_line helper (#612)
Browse files Browse the repository at this point in the history
Also restore the .bazeliskrc file I accidentally removed in 4bfe557
  • Loading branch information
alexeagle authored and gregmagolan committed Mar 23, 2024
1 parent 0d901be commit 90f3a07
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/private/tar.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ def _mtree_impl(ctx):
runfiles_dir = _calculate_runfiles_dir(default_info)
for file in depset(transitive = [s.default_runfiles.files]).to_list():
destination = _runfile_path(ctx, file, runfiles_dir)
content.add("{} uid=0 gid=0 mode=0755 time=1672560000 type=file content={}".format(
destination,
file.path,
))
content.add(_mtree_line(destination, file.path, "file"))

ctx.actions.write(out, content = content)

Expand Down

0 comments on commit 90f3a07

Please sign in to comment.