godep

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package godep provides basic importing of Godep dependencies.

This is not a complete implementation of Godep.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has

func Has(dir string) bool

Has is a command to detect if a package contains a Godeps.json file.

func Parse

func Parse(dir string) ([]*cfg.Dependency, error)

Parse parses a Godep's Godeps file.

It returns the contents as a dependency array.

func RemoveGodepSubpackages

func RemoveGodepSubpackages(c *cfg.Config) *cfg.Config

RemoveGodepSubpackages strips subpackages from a cfg.Config dependencies that contain "Godeps/_workspace/src" as part of the path.

Types

type Dependency

type Dependency struct {
	ImportPath string
	Comment    string `json:",omitempty"` // Description of commit, if present.
	Rev        string // VCS-specific commit ID.
}

Dependency is a modified version of Godep's Dependency struct. It drops all of the unexported fields.

type Godeps

type Godeps struct {
	ImportPath string
	GoVersion  string
	Packages   []string `json:",omitempty"` // Arguments to save, if any.
	Deps       []Dependency
	// contains filtered or unexported fields
}

The Godeps struct from Godep.

https://raw.githubusercontent.com/tools/godep/master/dep.go

We had to copy this because it's in the package main for Godep.

Directories

Path Synopsis
Package strip removes Godeps/_workspace and undoes the Godep rewrites.
Package strip removes Godeps/_workspace and undoes the Godep rewrites.

Jump to

Keyboard shortcuts

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