Version: v1.1.10 Latest Latest

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 7 Imported by: 2



Package dep provides functions for working with the dep tool.



This section is empty.


This section is empty.


func LockfileGraph added in v1.0.0

func LockfileGraph(filepath string) (graph.Deps, error)

LockfileGraph reads a dep lockfile and creates a dependency graph.

func ManifestGraph added in v1.0.0

func ManifestGraph(filepath string) (graph.Deps, error)

ManifestGraph reads a dep manifest and creates a dependency graph.


type Project

type Project struct {
	Name     string
	Packages []string
	Revision string
	Version  string

Project is a single imported repository within a dep project.

type Resolver added in v0.7.8

type Resolver struct {
	// contains filtered or unexported fields

Resolver contains both the lockfile and manifest information. Resolver implements golang.Resolver.

func New

func New(lockfilePath string, manifestPath string) (Resolver, error)

New constructs a golang.Resolver given the path to the manifest and lockfile.

func (Resolver) Resolve added in v0.7.8

func (r Resolver) Resolve(importpath string) (pkg.Import, error)

Resolve returns the revision of an imported Go package contained within the lockfile and checks to see if it should be ignored. If the package cannot be ignored and is not found, buildtools.ErrNoRevisionForPackage is returned.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL