Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Aug 16, 2023
1 parent 63704e2 commit e501277
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ oci_image(
## oci_pull

<pre>
oci_pull(<a href="#oci_pull-name">name</a>, <a href="#oci_pull-image">image</a>, <a href="#oci_pull-repository">repository</a>, <a href="#oci_pull-registry">registry</a>, <a href="#oci_pull-platforms">platforms</a>, <a href="#oci_pull-digest">digest</a>, <a href="#oci_pull-tag">tag</a>, <a href="#oci_pull-reproducible">reproducible</a>)
oci_pull(<a href="#oci_pull-name">name</a>, <a href="#oci_pull-image">image</a>, <a href="#oci_pull-repository">repository</a>, <a href="#oci_pull-registry">registry</a>, <a href="#oci_pull-platforms">platforms</a>, <a href="#oci_pull-digest">digest</a>, <a href="#oci_pull-tag">tag</a>, <a href="#oci_pull-reproducible">reproducible</a>, <a href="#oci_pull-is_bzlmod">is_bzlmod</a>)
</pre>

Repository macro to fetch image manifest data from a remote docker registry.
Expand All @@ -69,5 +69,6 @@ in rules like `oci_image`.
| <a id="oci_pull-digest"></a>digest | the digest string, starting with "sha256:", "sha512:", etc. If omitted, instructions for pinning are provided. | <code>None</code> |
| <a id="oci_pull-tag"></a>tag | a tag to choose an image from the registry. Exactly one of <code>tag</code> and <code>digest</code> must be set. Since tags are mutable, this is not reproducible, so a warning is printed. | <code>None</code> |
| <a id="oci_pull-reproducible"></a>reproducible | Set to False to silence the warning about reproducibility when using <code>tag</code>. | <code>True</code> |
| <a id="oci_pull-is_bzlmod"></a>is_bzlmod | whether the oci_pull is being called from a module extension | <code>False</code> |


2 changes: 1 addition & 1 deletion oci/private/pull.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ oci_alias = repository_rule(
"target_name": attr.string(),
"reproducible": attr.bool(default = True, doc = "Set to False to silence the warning about reproducibility when using `tag`"),
"bzlmod_repository": attr.string(
doc = "For error reporting. When called from a module extension, provides the name of a repository in MODULE.bazel",
doc = "For error reporting. When called from a module extension, provides the original name of the repository prior to mapping",
),
},
),
Expand Down

0 comments on commit e501277

Please sign in to comment.