Skip to content

A zero-byte packages-manifest.yaml is refused as 'missing required field: packages'; a missing key, an empty file, and packages: [] must all mean no packages #820

Open

Description

@David-Noble-at-work

workaround branch kept a zero-byte Home/common/packages-manifest.yaml so the layer would still carry a tracked
file under Home/ (the #819 detour).

Observed

Error: build tree: layer team: invalid packages-manifest.yaml: missing required field: packages

The file is 0 bytes. internal/manifest's validator, and schema/packages-manifest.json, make packages required,
so the only accepted spelling of "this manifest installs nothing" is packages: [].

Ruling (USER, 2026-09-05)

A missing packages key, an empty file, and packages: [] are the same manifest: one that contributes no
packages. None is an error. The manifest's other content (comments, future keys) is unaffected.

Evidence of completion

  • internal/manifest validation accepts a zero-byte file and a document without packages as an empty manifest;
    packages: [] keeps working
  • schema/packages-manifest.json no longer lists packages as required, and says the three forms are equivalent
  • planning a layer with an empty manifest plans no pkg.install and does not narrate a collision or a skip as an
    error
  • TestCheckedInManifests_AreValid gains a zero-byte fixture; a unit test covers all three forms
  • writ deploy noblefactor on DANOBLE-WD11-3 gets past the tree build with the zero-byte team manifest

Related

#818 (the pwsh entry), #814 (manifests must be unioned, not collided), #819 (a layer whose HEAD has nothing under
Home/ fails instead of contributing nothing) — the same deploy, the same afternoon.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions