Skip to content

Commit

Permalink
fix duplicate paths
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn committed Aug 8, 2024
1 parent 3a1b9bc commit c5d75fa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions private/remote/temurin_archive.bzl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"temurin archive repository rule"

STATIC_MTREE = """\
./etc/ssl/certs time=946684800.0 mode=755 gid=0 uid=0 type=dir
./etc/ssl/certs/java time=946684800.0 mode=755 gid=0 uid=0 type=dir
./usr/lib/jvm time=946684800.0 mode=755 gid=0 uid=0 type=dir
etc/ssl/certs/ time=946684800.0 mode=755 gid=0 uid=0 type=dir
etc/ssl/certs/java/ time=946684800.0 mode=755 gid=0 uid=0 type=dir
usr/lib/jvm/ time=946684800.0 mode=755 gid=0 uid=0 type=dir
# NOTE: cacerts is moved to ./etc/ssl/certs/java/cacerts via the awk mutation hence
# a symlink created in the original location for completeness.
./usr/lib/jvm/%s/lib/security/cacerts nlink=0 time=946684800.0 mode=777 gid=0 uid=0 type=link link=/etc/ssl/certs/java/cacerts
usr/lib/jvm/%s/lib/security/cacerts nlink=0 time=946684800.0 mode=777 gid=0 uid=0 type=link link=/etc/ssl/certs/java/cacerts
"""

AWK = """\
Expand All @@ -27,6 +27,9 @@ AWK = """\
} else {
sub("mode=0755", "")
}
# pkg_tar strips the leading ./ so we do too to avoid
# `duplicates of file paths not supported` error
sub("^" "./", "")
print
}
"""
Expand Down

0 comments on commit c5d75fa

Please # to comment.