Separate CalVer distributions from immutable schema versions

This commit is contained in:
2026-11-29 04:33:59 +00:00
parent f168d012e8
commit 053219b8da
12 changed files with 420 additions and 171 deletions

View File

@@ -0,0 +1,24 @@
// check-published verifies immutable versions before an explicitly requested release.
package main
import (
"flag"
"fmt"
"forge.maximumdirect.net/eric/schemas/internal/publication"
"os"
)
func main() {
repo := flag.String("repo", ".", "repository containing the committed candidate")
remote := flag.String("remote", "origin", "authoritative publication remote (already fetched)")
flag.Parse()
if flag.NArg() != 0 {
flag.Usage()
os.Exit(2)
}
if err := publication.CheckRemote(*repo, *remote); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println("Published contract directories are unchanged.")
}