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

Commit

Permalink
Merge branch 'pr/396'
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Muller committed Jan 13, 2016
2 parents 7a99eae + 08818cc commit 26e6c63
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v49 2016/01/13

* Add UK spelling license/licence to the pile + fix up a bunch of typos
* Clarify tag handling in docs

# v48 2016/01/13

* Abort restore if there is no $GOPATH set.
Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ To update a package from your `$GOPATH`, do this:
1. Run `godep update foo/bar`. (You can use the `...` wildcard, for example
`godep update foo/...`).

Before committing the change, you'll probably want to inspect the changes to
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 Down
3 changes: 2 additions & 1 deletion license.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
// LicenseFilePrefix is a list of filename prefixes that indicate it
// might contain a software license
var LicenseFilePrefix = []string{
"license",
"licence", // UK spelling
"license", // US spelling
"copying",
"unlicense",
"copyright",
Expand Down
3 changes: 3 additions & 0 deletions license_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ func TestLicenseFiles(t *testing.T) {
{"LICENSE.md", true, true},
{"LICENSE.rst", true, true},
{"LICENSE.txt", true, true},
{"licence", true, true},
{"LICENCE.broadcom", true, true},
{"LICENCE.md", true, true},
{"copying", true, true},
{"COPYING.txt", true, true},
{"unlicense", true, true},
Expand Down
6 changes: 3 additions & 3 deletions rewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

// rewrite visits the go files in pkgs, plus all go files
// in the directory tree Godeps, rewriting import statments
// in the directory tree Godeps, rewriting import statements
// according to the rules for func qualify.
func rewrite(pkgs []*Package, qual string, paths []string) error {
for _, path := range pkgFiles(pkgs) {
Expand All @@ -42,7 +42,7 @@ func pkgFiles(pkgs []*Package) []string {
}

// rewriteTree recursively visits the go files in path, rewriting
// import statments according to the rules for func qualify.
// import statements according to the rules for func qualify.
// This function ignores the 'testdata' directory.
func rewriteTree(path, qual string, paths []string) error {
w := fs.Walk(path)
Expand All @@ -66,7 +66,7 @@ func rewriteTree(path, qual string, paths []string) error {
return nil
}

// rewriteGoFile rewrites import statments in the named file
// rewriteGoFile rewrites import statements in the named file
// according to the rules for func qualify.
func rewriteGoFile(name, qual string, paths []string) error {
debugln("rewriteGoFile", name, ",", qual, ",", paths)
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"runtime"
)

const version = 48
const version = 49

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

0 comments on commit 26e6c63

Please sign in to comment.