Skip to content

Commit

Permalink
fix: don't use rctx symlink for manifest.json (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored Feb 28, 2024
1 parent 75de7fb commit 81af8fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions oci/private/pull.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,8 @@ def _oci_pull_impl(rctx):
else:
fail("Unrecognized mediaType {} in manifest file".format(manifest["mediaType"]))

# symlink manifest.json to blobs with its digest.
# it is okay to use symlink here as copy_to_directory will dereference it when creating the TreeArtifact.
rctx.symlink("manifest.json", _digest_into_blob_path(digest))
# copy manifest.json to blobs with its digest.
rctx.template(_digest_into_blob_path(digest), "manifest.json")

config_output_path = _digest_into_blob_path(manifest["config"]["digest"])
downloader.download_blob(manifest["config"]["digest"], config_output_path)
Expand Down

0 comments on commit 81af8fa

Please sign in to comment.