Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions oci/push.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,14 @@ done
is_executable = True,
)

runfiles = ctx.runfiles(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also change this to use runfiles properly. Using .to_list() was definitely wrong

files = [toolchain.sdk.ocitool, ctx.attr.manifest[OCIDescriptor].descriptor_file, digest_file, tag_file],
transitive_files = depset(transitive = [layout.files, layout.transitive_blob_indices]),
)

return [
DefaultInfo(
runfiles = ctx.runfiles(
files = layout.files.to_list() +
[toolchain.sdk.ocitool, ctx.attr.manifest[OCIDescriptor].descriptor_file, digest_file, tag_file],
),
runfiles = runfiles,
),
OCIReferenceInfo(
registry = ctx.attr.registry,
Expand Down
Loading