Skip to content

Consider removing panics #110

@sudo-bmitch

Description

@sudo-bmitch

Hi maintainers! I think there's a universal desire to not panic in a critical package, but how to get there is less easy. Considering how widely used this is, I thought it might be useful to create a proof of concept for what a v2 could look like. That implementation is up at:

https://github.com/sudo-bmitch/oci-digest

The biggest downside is the type changes and methods with errors in the returns would break existing users (hence the v2). I'm happy to see any of the changes in my package upsteamed and can assist in any PRs you'd like.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions