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

Add type alias for ContainerState for compatibility #1063

Closed
wants to merge 1 commit into from

Conversation

zhsj
Copy link

@zhsj zhsj commented Aug 18, 2020

Not sure the original purpose of this breaking change.
Others still can assign State.Status with ContainerState("whatever").
Actually Go doesn't have a proper Enum type.

So I propose we keep the compatibility with less effort.

Not sure the original purpose of this breaking change.
Others still can assign State.Status with `ContainerState("whatever")`.
Actually Go doesn't have a proper Enum type.

Signed-off-by: Shengjing Zhu <[email protected]>
@tianon
Copy link
Member

tianon commented Aug 18, 2020

cc @RenaudWasTaken @kolyshkin @thaJeztah

Related: #1046, #1056

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

oh, nice one; yes, I keep forgetting about aliases

LGTM

@thaJeztah
Copy link
Member

ping @kolyshkin @cyphar @mrunalp PTAL

@eclipseo
Copy link

Any chance to get this merged before 1.0.3? (Will there be a 1.0.3?)

@zhsj zhsj closed this Jan 15, 2021
@thaJeztah
Copy link
Member

@zhsj any reason you closed this?

@zhsj
Copy link
Author

zhsj commented Jan 15, 2021

@zhsj any reason you closed this?

As time goes by , I have fixed the breaks in other packages, for example hashicorp/nomad#8693

Edit: It's been so long that I forget which packages I have fixed.

@thaJeztah
Copy link
Member

There might still be other consumers, for which it could make sense to add it

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.

4 participants