Skip to content

oci/layout.NewReference (and others?) doesn’t document the image=="" special case #2679

@mtrmac

Description

@mtrmac

… meaning that callers who intend to submit an image reference, and don’t specifically filter out "", get unexpected behavior.

At least, document this special case (and perhaps audit other NewReference* functions for possible other instances of this).

Arguably:

  • NewIndexReference should be modified to actually reject an “N/A” index value <0
  • NewTagReference should be added, where passing "" is an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA defect in an existing functionality (or a PR fixing it)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions