dep

package
v0.7.24 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MPL-2.0 Imports: 6 Imported by: ? modules, 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

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