INNER CODE UNIT · Go
err
platform-engineering-labs/formae · cmd/bundle-examples/main.go:60
err = assertOpkg(*opkgGlob, *manifest)
} else {
err = stage(*dist, *manifest, *formaeVer, *stdRepo, *hub)
}
if err != nil {
fmt.Fprintf(os.Stderr, "bundle-examples: %v\n", err)
os.Exit(1)
}
}
func stage(dist, manifestPath, formaeVer, stdRepo, hub string) error {
// formaeVer is REQUIRED (the Makefile passes formae's own $(VERSION)); the
// examples ship in this formae binary, so they pin its version, not "latest".
if formaeVer == "" {
return fmt.Errorf("--formae-version is required (this build's formae X.Y.Z)")
}
stdURL, err := validateGH(stdRepo)