dep

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dep provides functions for working with the dep tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

Jump to

Keyboard shortcuts

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