gomod

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 7 Imported by: 0

README

Go resolution logic

The way resolution of go lock files works is as follows:

  1. Run go mod graph in order to create dependency graph
  2. Run go list -mod=readonly -e -m all to get the list of packages

The results of the commands above are then combined to form the finished lock file.

Documentation

Index

Constants

View Source
const Name = "go"

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdFactory

type CmdFactory struct{}

func (CmdFactory) MakeGraphCmd

func (_ CmdFactory) MakeGraphCmd(workingDirectory string) (*exec.Cmd, error)

func (CmdFactory) MakeListCmd

func (_ CmdFactory) MakeListCmd(workingDirectory string) (*exec.Cmd, error)

type ICmdFactory

type ICmdFactory interface {
	MakeGraphCmd(workingDirectory string) (*exec.Cmd, error)
	MakeListCmd(workingDirectory string) (*exec.Cmd, error)
}

type Job

type Job struct {
	job.BaseJob
	// contains filtered or unexported fields
}

func NewJob

func NewJob(
	file string,
	cmdFactory ICmdFactory,
	fileWriter writer.IFileWriter,
) *Job

func (*Job) Run

func (j *Job) Run()

type Pm

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

func NewPm

func NewPm() Pm

func (Pm) Manifests

func (_ Pm) Manifests() []string

func (Pm) Name

func (pm Pm) Name() string

type Strategy

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

func NewStrategy

func NewStrategy(files []string) Strategy

func (Strategy) Invoke

func (s Strategy) Invoke() ([]job.IJob, error)

Jump to

Keyboard shortcuts

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