Commit 05415d4
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 bdae383 commit 05415d4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments