Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > d08d1a6e2b4282324e06c315f1d04843 > files > 1

golang-github-opencontainers-runtime-spec-1.0.2-1.mga9.src.rpm

From cf278911ad160e8214fd8e8deb606d8831bae8bc Mon Sep 17 00:00:00 2001
From: Shengjing Zhu <zhsj@debian.org>
Date: Wed, 19 Aug 2020 00:16:59 +0800
Subject: [PATCH] Add type alias for ContainerState for compatibility

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 <zhsj@debian.org>
---
 specs-go/state.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/specs-go/state.go b/specs-go/state.go
index e2e64c66..c40dbfd5 100644
--- a/specs-go/state.go
+++ b/specs-go/state.go
@@ -1,7 +1,7 @@
 package specs
 
 // ContainerState represents the state of a container.
-type ContainerState string
+type ContainerState = string
 
 const (
 	// StateCreating indicates that the container is being created