Skip to content

Commit 49fbc76

Browse files
authored
fix: don't include xattr (#579)
1 parent 8985d21 commit 49fbc76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oci/private/tarball.sh.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [[ "${FORMAT}" == "oci" ]]; then
112112
# }
113113
repo_tags="${REPOTAGS[@]}" "${YQ}" -o json eval "(.manifests = ${MANIFEST_COPIES}) *d {\"manifests\": (env(repo_tags) | split \" \" | map {\"annotations\": {\"org.opencontainers.image.ref.name\": .}})}" "${INDEX_FILE}" > "${STAGING_DIR}/index.json"
114114

115-
tar -C "${STAGING_DIR}" -cf "${TARBALL_PATH}" index.json blobs oci-layout
115+
tar --directory "${STAGING_DIR}" --create --no-xattr --file "${TARBALL_PATH}" index.json blobs oci-layout
116116
exit 0
117117
fi
118118

@@ -137,4 +137,4 @@ layers="${LAYERS}" \
137137
--output-format json > "${STAGING_DIR}/manifest.json"
138138

139139
# TODO: https://github.com/bazel-contrib/rules_oci/issues/217
140-
tar -C "${STAGING_DIR}" -cf "${TARBALL_PATH}" manifest.json blobs
140+
tar --directory "${STAGING_DIR}" --create --no-xattr --file "${TARBALL_PATH}" manifest.json blobs

0 commit comments

Comments
 (0)