Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Commit

Permalink
v80: Address lint/vet feedback / Archive Repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Muller committed Jan 26, 2018
1 parent e7f8f2f commit ce0bfad
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 34 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
@@ -1,3 +1,7 @@
#v80 (2018/01/26)

* Address lin/vet feedback.

#v79 (2017/02/01)

* Fixes #531: fullPackageInDir didn't capture the error from fillPackage()
Expand Down
66 changes: 33 additions & 33 deletions Readme.md
@@ -1,14 +1,17 @@
## Godep
# Godep - Archived

Please use [dep](https://github.com/golang/dep) or another tool instead.

The rest of this readme is preserved for those that may still need its contents.

[![Build Status](https://travis-ci.org/tools/godep.svg)](https://travis-ci.org/tools/godep)

[![GoDoc](https://godoc.org/github.com/tools/godep?status.svg)](https://godoc.org/github.com/tools/godep)

godep helps build packages reproducibly by fixing their dependencies.

This tool assumes you are working in a standard Go workspace, as described in
http://golang.org/doc/code.html. We expect godep to build on Go 1.4* or newer,
but you can use it on any project that works with Go 1 or newer.
This tool assumes you are working in a standard Go workspace, as described [here](http://golang.org/doc/code.html). We
expect godep to build on Go 1.4* or newer, but you can use it on any project that works with Go 1 or newer.

Please check the [FAQ](FAQ.md) if you have a question.

Expand All @@ -23,7 +26,7 @@ is considered to be in a state of support rather than active feature development
## Install

```console
$ go get github.com/tools/godep
go get github.com/tools/godep
```

## How to use godep with a new project
Expand All @@ -32,7 +35,7 @@ Assuming you've got everything working already, so you can build your project
with `go install` and test it with `go test`, it's one command to start using:

```console
$ godep save
godep save
```

This will save a list of dependencies to the file `Godeps/Godeps.json` and copy
Expand Down Expand Up @@ -72,7 +75,6 @@ time** you run a Go-related command, you wrap it in one of these two ways:

`-r` isn't necessary with go1.6+ and isn't allowed.


## Additional Operations

### Restore
Expand Down Expand Up @@ -106,11 +108,10 @@ To add a new package foo/bar, do this:
To update a package from your `$GOPATH`, do this:

1. Run `go get -u foo/bar`
1. Run `godep update foo/bar`. (You can use the `...` wildcard, for example
`godep update foo/...`).
1. Run `godep update foo/bar`.

Before comitting the change, you'll probably want to inspect the changes to
Godeps, for example with `git diff`, and make sure it looks reasonable.
You can use the `...` wildcard, for example `godep update foo/...`. Before comitting the change, you'll probably want to
inspect the changes to Godeps, for example with `git diff`, and make sure it looks reasonable.

## Multiple Packages

Expand All @@ -119,41 +120,40 @@ running commands like `go test ./...`, `go install ./...`, and `go fmt ./...`.
Similarly, you should run `godep save ./...` to capture the dependencies of all
packages in your application.


## File Format

Godeps is a json file with the following structure:

```go
type Godeps struct {
ImportPath string
GoVersion string // Abridged output of 'go version'.
GodepVersion string // Abridged output of 'godep version'
Packages []string // Arguments to godep save, if any.
Deps []struct {
ImportPath string
Comment string // Description of commit, if present.
Rev string // VCS-specific commit ID.
}
ImportPath string
GoVersion string // Abridged output of 'go version'.
GodepVersion string // Abridged output of 'godep version'
Packages []string // Arguments to godep save, if any.
Deps []struct {
ImportPath string
Comment string // Description of commit, if present.
Rev string // VCS-specific commit ID.
}
}
```

Example Godeps:

```json
{
"ImportPath": "github.com/kr/hk",
"GoVersion": "go1.6",
"Deps": [
{
"ImportPath": "code.google.com/p/go-netrc/netrc",
"Rev": "28676070ab99"
},
{
"ImportPath": "github.com/kr/binarydist",
"Rev": "3380ade90f8b0dfa3e363fd7d7e941fa857d0d13"
}
]
"ImportPath": "github.com/kr/hk",
"GoVersion": "go1.6",
"Deps": [
{
"ImportPath": "code.google.com/p/go-netrc/netrc",
"Rev": "28676070ab99"
},
{
"ImportPath": "github.com/kr/binarydist",
"Rev": "3380ade90f8b0dfa3e363fd7d7e941fa857d0d13"
}
]
}
```

Expand Down
2 changes: 1 addition & 1 deletion version.go
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
)

const version = 79
const version = 80

var cmdVersion = &Command{
Name: "version",
Expand Down

0 comments on commit ce0bfad

Please sign in to comment.