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

State: align ocispec-rs with spec-go and introduce State #170

Closed
wants to merge 1 commit into from

Conversation

Apokleos
Copy link
Contributor

@Apokleos Apokleos commented Jun 6, 2024

Fixes #169

@Apokleos
Copy link
Contributor Author

Apokleos commented Jun 6, 2024

Hi @utam0k @saschagrunert PTAL! Thx very much.

Comment on lines +23 to +24
/// Paused indicates that the container exists, but all processes are paused.
Paused,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm so sorry @saschagrunert
I think I misunderstood the State of things and mixed them up. I need to rethink it. Thank you for your reminder.

Comment on lines +30 to +32
/// Unknown
#[default]
Unknown,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for this, do we need that?

pid: i32,

/// opaque metadata.
#[serde(default)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[serde(default)]
#[serde(default, skip_serializing_if = "Option::is_none")]

@Apokleos
Copy link
Contributor Author

Apokleos commented Jun 6, 2024

Sorry @saschagrunert @utam0k for that my misunderstanding of this state, I think I should close it. Thx!

@Apokleos Apokleos closed this Jun 6, 2024
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.

oci-spec-rs/Runtime needs add support State
2 participants