Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to thiserror, drop get_manifest() API #16

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

cgwalters
Copy link
Collaborator

It was requested that we use thiserror as we're a library.

I dropped the read_manifest API as I don't think people should use it in general and it would have required its own dedicated error type.

Closes: #15

It was requested that we use `thiserror` as we're a library.

I dropped the `read_manifest` API as I don't think people
should use it in general and it would have required its
own dedicated error type.

Closes: #15
Signed-off-by: Colin Walters <walters@verbum.org>
@ariel-miculas
Copy link
Collaborator

Thanks for addressing this so quickly!

@cgwalters cgwalters enabled auto-merge September 13, 2024 14:50
@cgwalters
Copy link
Collaborator Author

Thanks for addressing this so quickly!

No problem; let me know if you're interested in being a reviewer/maintainer here. Looking forward to more collaboration!

@ariel-miculas
Copy link
Collaborator

I'm definitely interested in contributing to this project, especially since I'm in the process of making some changes to PuzzleFS to be more in line with the OCI spec and this crate comes in handy. I would love to become a maintainer!

@cgwalters
Copy link
Collaborator Author

I'm definitely interested in contributing to this project, especially since I'm in the process of making some changes to PuzzleFS to be more in line with the OCI spec and this crate comes in handy. I would love to become a maintainer!

Great, invite sent! Once accepted you should have the ability to official mark this PR as reviewed which should merge it. Most repositories in this organization have a "1 review required" rule.

@cgwalters cgwalters merged commit 658a0de into main Sep 13, 2024
3 checks passed
@ariel-miculas
Copy link
Collaborator

Thanks! Now how do I make a new release?

@cgwalters
Copy link
Collaborator Author

Now how do I make a new release?

That gets into a whole thing around access to crates.io which...hmm is just me right now, that's busted. Conceptually what we should probably do is clean up and centralize this stuff with https://github.com/containers/oci-spec-rs/ too (which recently gained more reviewers too).

There's some plumbing to do here, I think we could make a dedicated team in this org, and also ideally automate releases to crates.io from an action or so...

(A giant problem with crates.io is the default model encourages publishing from a user's workstation and doesn't even require a public git repository etc.)

Anyways for now I did a new release https://crates.io/crates/ocidir/0.3.0

cgwalters added a commit to cgwalters/containers-image-proxy-rs that referenced this pull request Sep 19, 2024
Same motivation as containers/ocidir-rs#16

Originally I split this out as a "quick library" and using anyhow
was convenient, but since we're bumping semver let's port
to thiserror.

Signed-off-by: Colin Walters <walters@verbum.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use thiserror instead of anyhow for error handling
2 participants