diff --git a/Changelog.md b/Changelog.md index b383379..476f6d1 100644 --- a/Changelog.md +++ b/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() diff --git a/Readme.md b/Readme.md index 19506e4..e5d779e 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,8 @@ -## 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) @@ -6,9 +10,8 @@ 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. @@ -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 @@ -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 @@ -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 @@ -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 @@ -119,22 +120,21 @@ 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. + } } ``` @@ -142,18 +142,18 @@ 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" + } + ] } ``` diff --git a/version.go b/version.go index 71abe8d..e4a3e83 100644 --- a/version.go +++ b/version.go @@ -8,7 +8,7 @@ import ( "strings" ) -const version = 79 +const version = 80 var cmdVersion = &Command{ Name: "version",