bazel-contrib / bazel-contrib/rules_oci

Allow targets from using oci.pull() to be used anywhere an oci_push() target can be used.

Open
#860 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
423
Forks
213
Avg merge
53m
Merged PRs (30d)
1

Description

Both rules result in a target that names an image, but they are not interchangeable when referring to an image by a "name". For an example of where this is relevant, see: https://github.com/abrisco/rules_helm/issues/206

There is already a precedent in `oci.pull()` and `oci_image()` being somewhat interchangeable when referring to images as content, but when something needs a name things aren't so clean.

Contributor guide

Open the contributing guide

Research direction

Start by comparing the target interfaces exposed by oci.pull(), oci_image(), and oci_push(), then read the linked rules_helm issue for the naming use case. Done means a target produced by oci.pull() can be passed anywhere an oci_push() target can currently be used, including contexts that require an image name.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.