INNER CODE UNIT · Go

err

platform-engineering-labs/formae · cmd/bundle-examples/main.go:62

		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)
	if err != nil {
		return fmt.Errorf("standard repo url: %w", err)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…