Documentation
¶
Index ¶
- Constants
- func BinaryPath(selection *Selection) string
- func BuildEnv(env []string) []string
- func Prepare(ctx context.Context, selection *Selection, stderr io.Writer) (string, error)
- func Update(ctx context.Context, selection *Selection, targetVersion string, env []string, ...) error
- func VerifyAdapter(path string, selection *Selection) error
- type Selection
Constants ¶
const ModulePath = "github.com/benjaco/devflow"
Variables ¶
This section is empty.
Functions ¶
func BinaryPath ¶
func BuildEnv ¶
BuildEnv isolates launcher and adapter builds from application workspace, modfile and cross-compilation settings while preserving Go proxy/checksum policy.
func Prepare ¶
Prepare builds the selected module's own entrypoint, so its flag parser and adapter bootstrap belong to the project version before either receives argv.
func Update ¶
func Update(ctx context.Context, selection *Selection, targetVersion string, env []string, stderr io.Writer) error
Update changes an explicitly approved project pin through Go's module solver. Go works on staged files; failed downloads, cancellation and concurrent edits leave the application's module files intact.
func VerifyAdapter ¶
VerifyAdapter checks the linked module, since Go can raise a direct requirement when another adapter dependency needs a newer Devflow release.
Types ¶
type Selection ¶
type Selection struct {
Worktree string
Version string
ReplacementPath string
ReplacementVersion string
SourceRoot string
Identity string
// contains filtered or unexported fields
}
func Resolve ¶
Resolve reads the project's explicit requirement, independently of go.work or unrelated dependencies. No requirement leaves the installed launcher in charge.
func (*Selection) ModuleSource ¶
ModuleSource reconstructs only the chosen Devflow dependency. Application replacements and toolchain settings must not alter the launcher's dependency graph.