Skip to content

Commit d42b44b

Browse files
committed
specs-go/config: Use a pointer for Process.ConsoleSize
Avoid injecting: "consoleSize":{"height":0,"width":0} when serializing with Go's stock JSON serializer. Using a pointer for this optional struct property works around [1]. [1]: golang/go#11939 Signed-off-by: W. Trevor King <[email protected]>
1 parent 5a39b39 commit d42b44b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs-go/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Process struct {
3434
// Terminal creates an interactive terminal for the container.
3535
Terminal bool `json:"terminal,omitempty"`
3636
// ConsoleSize specifies the size of the console.
37-
ConsoleSize Box `json:"consoleSize,omitempty"`
37+
ConsoleSize *Box `json:"consoleSize,omitempty"`
3838
// User specifies user information for the process.
3939
User User `json:"user"`
4040
// Args specifies the binary and arguments for the application to execute.

0 commit comments

Comments
 (0)