Skip to content

build: consume cocoon's exported json namespace declarations - #24

Merged
CMGS merged 1 commit into
masterfrom
build/cocoon-json-namespace
Jul 23, 2026
Merged

build: consume cocoon's exported json namespace declarations#24
CMGS merged 1 commit into
masterfrom
build/cocoon-json-namespace

Conversation

@CMGS

@CMGS CMGS commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Follow-up to cocoonstack/cocoon#165, which moved the json meta namespace declarations into the backend packages that own them.

Bumps cocoon to v0.5.6-0.20260723104456-be85485 (the merge commit) and replaces the two hand-copied metajson.Namespace blocks with the newly-exported methods:

  • home.OpenStorecloudimg.NewConfig(...).JSONNamespace()
  • linux CNI provider → cni.NewConfig(conf).JSONNamespace()

Also drops TestCloudimgNamespace: it existed only to pin the hand-copy against cocoon's layout, and the layout can no longer diverge by construction now that both binaries obtain it from the same source. TestOpenStoreEmpty still exercises the full OpenStore path end to end.

Net -78 lines. Gates: go build darwin + linux, go test (darwin), golangci-lint clean on the changed files; runtime image ls smoke-tested against a fresh state dir.

cocoon now exports JSONNamespace() on the cloudimg and cni backends
(cocoonstack/cocoon#165), so drop the two hand-copied namespace
declarations and the drift-guard test that pinned them — the layout can
no longer diverge from cocoon's by construction.
@CMGS
CMGS merged commit a690fae into master Jul 23, 2026
3 checks passed
@CMGS
CMGS deleted the build/cocoon-json-namespace branch July 23, 2026 10:51
CMGS added a commit that referenced this pull request Jul 23, 2026
cocoon now exports JSONNamespace() on the cloudimg and cni backends
(cocoonstack/cocoon#165), so drop the two hand-copied namespace
declarations and the drift-guard test that pinned them — the layout can
no longer diverge from cocoon's by construction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant