validatedefinition

package
v0.14.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package validatedefinition checks that a package's definition says what the registry reads it for.

registry.yaml is the one file in the registry a person writes, and the only thing that says which package a branch holds: a branch is named after an id. Nothing on the way in read it, so a definition that stopped being YAML passed the branch's checks, merged, and left the package generating nothing -- a run says so and moves on, which is a line in a log nobody is watching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(w io.Writer, path string) error

Validate reads the definition at path and reports what is wrong with it.

What it asks is what the registry's own readers ask: that it is YAML, that it names a package, and that it says where the package comes from. A branch that holds nothing but its claim to a package is right to say no more -- that is what a branch created and not yet taken over holds -- so a claim passes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL