project

package
v0.13.0-a.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SourceGraph

func SourceGraph(
	options Options,
	reporter diagnostic.Reporter,
) (*runtime.DAG, string, error)

func UnobinReplacement

func UnobinReplacement(
	projectDir string,
	cliReplace string,
	replace map[deps.Dependency]string,
) (string, error)

func VerifyDependencies

func VerifyDependencies(options Options) (*deps.VerifyResult, error)

Types

type CacheCleanResult

type CacheCleanResult struct {
	Path    string
	Removed bool
}

func CleanDependencies

func CleanDependencies(options Options) (*CacheCleanResult, error)

type DependencyEntry

type DependencyEntry struct {
	ID       string               `json:"id"       ub:"id"`
	Kind     deps.ProjectLockKind `json:"kind"     ub:"kind"`
	Version  string               `json:"version"  ub:"version"`
	Indirect bool                 `json:"indirect" ub:"indirect"`
}

func ListDependencies

func ListDependencies(path string) ([]DependencyEntry, error)

type DependencyProgress

type DependencyProgress struct {
	Dependency      deps.Dependency
	Version         string
	SelectedVersion string
	Err             error
}

type DependencyResult

type DependencyResult struct {
	Dependency      string
	Version         string
	SelectedVersion string
	Indirect        bool
	Write           *DependencyWriteResult
	Diagnostics     []diagnostic.Diagnostic
}

func UpdateDependency

func UpdateDependency(options Options, arg string) (*DependencyResult, error)

type DependencyWriteResult

type DependencyWriteResult struct {
	ProjectFile string
	LockFile    string
	Direct      int
	Indirect    int
	Selected    int
	Files       []filechange.Change
	Diagnostics []diagnostic.Diagnostic
}

func SyncDependencies

func SyncDependencies(options Options) (*DependencyWriteResult, error)

type Options

type Options struct {
	Path                 string
	ReplaceUnobin        string
	UnobinVersion        string
	LibraryAPIDescriptor *libraryapi.Descriptor
	NewResolver          func(string) (resolve.Resolver, error)
	NewRemoteResolver    func() (*resolve.RemoteResolver, error)
	ListTags             func(string) ([]string, error)
	ToolOutput           io.Writer
	Progress             func(DependencyProgress)
}

func (Options) Compatibility

func (o Options) Compatibility(
	projectDir string, project *deps.Project, replacement string,
) (*golibrary.CompatibilityContext, error)

type SourceTarget

type SourceTarget struct {
	Path string
	Type string
}

func CheckSource

func CheckSource(
	options Options,
	reporter diagnostic.Reporter,
) (SourceTarget, error)

Jump to

Keyboard shortcuts

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