Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #342 from carolynvs/toml-allthethings
Browse files Browse the repository at this point in the history
Move to TOML for manifest and lock
  • Loading branch information
sdboyer authored Apr 13, 2017
2 parents e4f1f3e + e31a186 commit b839831
Show file tree
Hide file tree
Showing 162 changed files with 9,228 additions and 912 deletions.
43 changes: 43 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

[[dependencies]]
branch = "2.x"
name = "github.com/Masterminds/semver"

[[dependencies]]
name = "github.com/Masterminds/vcs"
version = "^1.8.0"

[[dependencies]]
branch = "master"
name = "github.com/pelletier/go-toml"

[[dependencies]]
name = "github.com/pkg/errors"
version = ">=0.8.0, <1.0.0"

[[dependencies]]
name = "github.com/sdboyer/gps"
version = ">=0.15.0, <1.0.0"
4 changes: 2 additions & 2 deletions analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestDeriveManifestAndLock(t *testing.T) {
defer h.Cleanup()

h.TempDir("dep")
golden := "analyzer/manifest.json"
golden := filepath.Join("analyzer", ManifestName)
want := h.GetTestFileString(golden)
h.TempCopy(filepath.Join("dep", ManifestName), golden)

Expand All @@ -29,7 +29,7 @@ func TestDeriveManifestAndLock(t *testing.T) {
t.Fatal(err)
}

got, err := m.(*Manifest).MarshalJSON()
got, err := m.(*Manifest).MarshalTOML()
if err != nil {
t.Fatal(err)
}
Expand Down
5 changes: 3 additions & 2 deletions cmd/dep/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"strings"
"testing"

"github.com/golang/dep"
"github.com/golang/dep/test"
)

Expand Down Expand Up @@ -56,8 +57,8 @@ func TestIntegration(t *testing.T) {
}

// Check final manifest and lock
testCase.CompareFile("manifest.json", testProj.ProjPath("manifest.json"))
testCase.CompareFile("lock.json", testProj.ProjPath("lock.json"))
testCase.CompareFile(dep.ManifestName, testProj.ProjPath(dep.ManifestName))
testCase.CompareFile(dep.LockName, testProj.ProjPath(dep.LockName))

// Check vendor paths
testProj.CompareImportPaths()
Expand Down
6 changes: 3 additions & 3 deletions cmd/dep/testdata/harness_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ The directory structure is as follows:
testcase.json
initial/
file1.go
manifest.json
Gopkg.toml
...
final/
manifest.json
lock.json
Gopkg.toml
Gopkg.lock
case2/
...

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions cmd/dep/testdata/harness_tests/ensure/empty/case1/final/lock.json

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

[[dependencies]]
name = "github.com/sdboyer/deptest"
version = "^0.8.0"
13 changes: 0 additions & 13 deletions cmd/dep/testdata/harness_tests/ensure/empty/case2/final/lock.json

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[dependencies]]
name = "github.com/sdboyer/deptest"
version = "~0.8.0"

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

[[overrides]]
name = "github.com/sdboyer/deptest"
version = "1.0.0"

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[dependencies]]
name = "github.com/sdboyer/deptest"
version = "~0.8.0"
21 changes: 0 additions & 21 deletions cmd/dep/testdata/harness_tests/ensure/update/case1/final/lock.json

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[dependencies]]
name = "github.com/sdboyer/deptest"
version = "~0.8.0"

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[dependencies]]
name = "github.com/sdboyer/deptest"
version = "~0.8.0"
21 changes: 0 additions & 21 deletions cmd/dep/testdata/harness_tests/ensure/update/case2/final/lock.json

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[dependencies]]
name = "github.com/sdboyer/deptest"
version = "~0.8.0"
Loading

0 comments on commit b839831

Please sign in to comment.