Separate CalVer distributions from immutable schema versions
This commit is contained in:
24
cmd/check-published/main.go
Normal file
24
cmd/check-published/main.go
Normal 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.")
|
||||
}
|
||||
Reference in New Issue
Block a user