builder

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HarnessEnv = "NFLOW_HARNESS"
)

HarnessEnv marks a process as running inside an external-module harness.

Variables

View Source
var (
	Version = "dev"
	Commit  = unknownValue
	BuiltAt = unknownValue
)

Functions

func EnsureHarness

func EnsureHarness(reqs []require.Requirement, flowPath ...string) (string, error)

func EnsureHarnessContext

func EnsureHarnessContext(ctx context.Context, reqs []require.Requirement, flowPath ...string) (string, error)

func ExecHarness

func ExecHarness(bin string, args []string) int

func ExecHarnessContext

func ExecHarnessContext(ctx context.Context, bin string, args []string) int

func FlowModuleRoot

func FlowModuleRoot() (string, error)

FlowModuleRoot locates the Nexss Flow source module using the running executable or current working directory. It is shared by the CLI and the builder so both use the same module-root detection logic.

func GitCommit

func GitCommit(ctx context.Context, dir string) string

GitCommit returns the short revision for a source directory.

func GitDescribe

func GitDescribe(ctx context.Context, dir string) string

GitDescribe returns the closest tag or revision for a source directory.

func Print

func Print(w interface{ Write([]byte) (int, error) })

Print writes a multi-line build summary to w.

func ResolvedBuildInfo

func ResolvedBuildInfo() (version, commit, builtAt string)

func RunBuild

func RunBuild(ctx context.Context, args []string, sourceRequires func(context.Context, string) ([]require.Requirement, error)) int

RunBuild builds the workflow binary using the supplied requirement resolver. The resolver is injected by the CLI so its active native bundle set is honored.

func SourceRequires

func SourceRequires(ctx context.Context, path string) ([]require.Requirement, error)

SourceRequires resolves @require declarations using the shipped native directives.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL