Commit 750562b
committed
specs-go/config: Make User.UID and User.GID pointers
Avoiding:
$ go test ./specs-go
--- FAIL: TestConfigRoundTrip (0.00s)
--- FAIL: TestConfigRoundTrip/config_2 (0.00s)
round_trip_test.go:35: failed to round-trip:
{"ociVersion":"1.0.0","platform":{"os":"windows","arch":"amd64"},"process":{"user":{"uid":0,"gid":0,"username":"containeradministrator"},"args":["sh"],"cwd":"C:\\"},"root":{"path":"rootfs"}}
FAIL
FAIL github.com/opencontainers/runtime-spec/specs-go 0.003s
We can't just add omitempty (without also making them pointers),
because 0 is a meaningful value for both properties.
Signed-off-by: W. Trevor King <[email protected]>1 parent 767e0ce commit 750562b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments