hst/config: make identifier omitempty
All checks were successful
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Successful in 2m11s
Test / Hakurei (push) Successful in 3m17s
Test / Hpkg (push) Successful in 4m2s
Test / Sandbox (race detector) (push) Successful in 4m12s
Test / Hakurei (race detector) (push) Successful in 5m7s
Test / Flake checks (push) Successful in 1m33s

This is an optional field. Serialise it as such.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2025-11-03 01:23:15 +09:00
parent 1c168babf2
commit 24435694a5
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
2 changed files with 1 additions and 2 deletions

View File

@ -712,7 +712,6 @@ func TestPrintPs(t *testing.T) {
"instance": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "instance": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"pid": 48879, "pid": 48879,
"shim_pid": 51966, "shim_pid": 51966,
"id": "",
"enablements": { "enablements": {
"wayland": true, "wayland": true,
"pulse": true "pulse": true

View File

@ -12,7 +12,7 @@ import (
type Config struct { type Config struct {
// Reverse-DNS style configured arbitrary identifier string. // Reverse-DNS style configured arbitrary identifier string.
// Passed to wayland security-context-v1 and used as part of defaults in dbus session proxy. // Passed to wayland security-context-v1 and used as part of defaults in dbus session proxy.
ID string `json:"id"` ID string `json:"id,omitempty"`
// System services to make available in the container. // System services to make available in the container.
Enablements *Enablements `json:"enablements,omitempty"` Enablements *Enablements `json:"enablements,omitempty"`