modules

package
v0.0.123 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(args []string) error

func ListModuleFiles added in v0.0.106

func ListModuleFiles(root string, moduleDir string) ([]string, error)

func Render

func Render(w io.Writer, modules []Module) error

func RenderAnnotated added in v0.0.106

func RenderAnnotated(w io.Writer, modules []Module, annotations map[string]ModuleAnnotation) error

func UpdateLocalDepsAndRender added in v0.0.106

func UpdateLocalDepsAndRender(w io.Writer, dir string, dryRun bool) error

Types

type DependencyAnnotation added in v0.0.106

type DependencyAnnotation struct {
	Dir            string
	ModulePath     string
	OldVersion     string
	NewVersion     string
	RemovedReplace bool
}

type FindOptions added in v0.0.106

type FindOptions struct {
	NoTags bool
}

type Module

type Module struct {
	Dir            string
	Path           string
	Depends        []string
	LatestTag      string
	LatestTagKnown bool

	Requires []ModuleRequire
	Replaces []ModuleReplace
	// contains filtered or unexported fields
}

func Find

func Find(root string) ([]Module, error)

func FindWithOptions added in v0.0.106

func FindWithOptions(root string, opts FindOptions) ([]Module, error)

type ModuleAnnotation added in v0.0.106

type ModuleAnnotation struct {
	UpdatedDeps []DependencyAnnotation
	PreviousTag string
	NewTag      string
}

type ModuleReplace added in v0.0.106

type ModuleReplace struct {
	OldPath    string
	NewPath    string
	NewVersion string
}

type ModuleRequire added in v0.0.106

type ModuleRequire struct {
	Path    string
	Version string
}

Jump to

Keyboard shortcuts

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