projectversion

package
v0.0.0-...-8d0dba2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const ModulePath = "github.com/benjaco/devflow"

Variables

This section is empty.

Functions

func BinaryPath

func BinaryPath(selection *Selection) string

func BuildEnv

func BuildEnv(env []string) []string

BuildEnv isolates launcher and adapter builds from application workspace, modfile and cross-compilation settings while preserving Go proxy/checksum policy.

func Prepare

func Prepare(ctx context.Context, selection *Selection, stderr io.Writer) (string, error)

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

func VerifyAdapter(path string, selection *Selection) error

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

func Resolve(worktree string) (*Selection, error)

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

func (s *Selection) ModuleSource(modulePath string) ([]byte, error)

ModuleSource reconstructs only the chosen Devflow dependency. Application replacements and toolchain settings must not alter the launcher's dependency graph.

func (*Selection) SumBytes

func (s *Selection) SumBytes() []byte

Jump to

Keyboard shortcuts

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