mod

package
v0.6.9-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 30 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean added in v0.6.8

func Clean(rflags flags.RootPflagpole) error

func Get added in v0.6.8

func Get(module string, rflags flags.RootPflagpole, gflags flags.Mod__GetFlagpole) error

func Init

func Init(module string, rflags flags.RootPflagpole) (err error)
func Link(rflags flags.RootPflagpole) error

func Publish added in v0.6.8

func Publish(taggedMod string) error

func Tidy

func Tidy(rflags flags.RootPflagpole) error

func ValidateModURL added in v0.6.8

func ValidateModURL(mod string) error

func Vendor

func Vendor(rflags flags.RootPflagpole) error

func Verify

func Verify(rflags flags.RootPflagpole) error

Types

type CueMod added in v0.6.8

type CueMod struct {
	Basedir string

	Module string

	CueVer string

	Require  map[string]string
	Indirect map[string]string
	Replace  map[string]Dep
	Exclude  map[string]string
	Sums     map[Dep][]string

	// final list produced by MVS
	BuildList []module.Version

	FS billy.Filesystem
}

func ReadModule added in v0.6.8

func ReadModule(basedir string, FS billy.Filesystem) (cm *CueMod, err error)

func (*CueMod) CleanDeps added in v0.6.8

func (cm *CueMod) CleanDeps() error

func (*CueMod) CleanSums added in v0.6.8

func (cm *CueMod) CleanSums() error

func (*CueMod) ParseModFile added in v0.6.8

func (cm *CueMod) ParseModFile(data []byte) (err error)

func (*CueMod) ReadModFile added in v0.6.8

func (cm *CueMod) ReadModFile() (err error)

func (*CueMod) ReadSumFile added in v0.6.8

func (cm *CueMod) ReadSumFile() error

func (*CueMod) SolveMVS added in v0.6.8

func (cm *CueMod) SolveMVS(latest bool) error

func (*CueMod) UpgradePseudoVersions added in v0.6.8

func (cm *CueMod) UpgradePseudoVersions() (err error)

func (*CueMod) Vendor added in v0.6.8

func (cm *CueMod) Vendor(method string, verbosity int) (err error)

func (*CueMod) Verify added in v0.6.8

func (cm *CueMod) Verify() (err error)

func (*CueMod) WriteModFile added in v0.6.8

func (cm *CueMod) WriteModFile() (err error)

func (*CueMod) WriteModule added in v0.6.8

func (cm *CueMod) WriteModule() (err error)

func (*CueMod) WriteSumFile added in v0.6.8

func (cm *CueMod) WriteSumFile() (err error)

type Dep added in v0.6.8

type Dep struct {
	Path    string
	Version string
}

type RequirementResolver added in v0.6.8

type RequirementResolver struct {
	// contains filtered or unexported fields
}

type needed by Go's mvs library

func (*RequirementResolver) Max added in v0.6.8

func (rr *RequirementResolver) Max(v1, v2 string) string

func (*RequirementResolver) Required added in v0.6.8

func (rr *RequirementResolver) Required(m module.Version) ([]module.Version, error)

Directories

Path Synopsis
Package mvs implements Minimal Version Selection.
Package mvs implements Minimal Version Selection.
parse
lazyregexp
Package lazyregexp is a thin wrapper over regexp, allowing the use of global regexp variables without forcing them to be compiled at init.
Package lazyregexp is a thin wrapper over regexp, allowing the use of global regexp variables without forcing them to be compiled at init.

Jump to

Keyboard shortcuts

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