Skip to content

Commit f307cfc

Browse files
committed
specs-go/config.go: Make Root.Readonly omitempty
It's an optional setting, and this change will fix the wordy: $ ocitools generate --template <(echo '{}') $ grep readonly config.json "readonly": false, Instead, config.json will not contain a 'readonly' entry at all. Signed-off-by: W. Trevor King <[email protected]>
1 parent dbce512 commit f307cfc

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
@@ -71,7 +71,7 @@ type Root struct {
7171
// Path is the absolute path to the container's root filesystem.
7272
Path string `json:"path"`
7373
// Readonly makes the root filesystem for the container readonly before the process is executed.
74-
Readonly bool `json:"readonly"`
74+
Readonly bool `json:"readonly,omitempty"`
7575
}
7676

7777
// Platform specifies OS and arch information for the host system that the container

0 commit comments

Comments
 (0)