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

Move to TOML for manifest and lock #342

Merged
merged 20 commits into from
Apr 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

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"

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"

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"

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