INNER CODE UNIT · Go

stage

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

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)
	}
	stdTag, _, err := latestTag(stdRepo)
	if err != nil {
		return fmt.Errorf("standard tag: %w", err)
	}
	if stdTag == "" {
		return fmt.Errorf("no stable tag on standard bundle")
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…