mvs

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateBuildList

func UpdateBuildList(target module.Version, modulesToUpgrade []module.Version, modulesToDowngrade []module.Version, reqs *ReqsGraph) ([]module.Version, error)

UpdateBuildList decides whether to upgrade or downgrade based on modulesToUpgrade and modulesToDowngrade. if modulesToUpgrade is empty, upgrade all dependencies. if modulesToUpgrade is not empty, upgrade the dependencies. if modulesToDowngrade is not empty, downgrade the dependencies. if modulesToUpgrade and modulesToDowngrade are both empty, first apply upgrade operation and then downgrade the build list returned from previous operation.

Types

type ReqsGraph

type ReqsGraph struct {
	graph.Graph[module.Version, module.Version]
	KpmClient *client.KpmClient
	KpmPkg    *pkg.KclPkg
}

func (ReqsGraph) Max

func (r ReqsGraph) Max(path, v1, v2 string) string

func (ReqsGraph) Previous

func (r ReqsGraph) Previous(m module.Version) (module.Version, error)

func (ReqsGraph) Required

func (r ReqsGraph) Required(m module.Version) ([]module.Version, error)

func (ReqsGraph) Upgrade

func (r ReqsGraph) Upgrade(m module.Version) (module.Version, error)

Jump to

Keyboard shortcuts

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