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

Commit

Permalink
use new manifest constructor and making requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RaviTezu committed Aug 22, 2017
1 parent 5a5aaf2 commit 4603971
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions cmd/dep/govend_importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ func (g *govendImporter) load(projectDir string) error {
func (g *govendImporter) convert(pr gps.ProjectRoot) (*dep.Manifest, *dep.Lock, error) {
g.logger.Println("Converting from vendor.yaml...")

manifest := &dep.Manifest{
Constraints: make(gps.ProjectConstraints),
}
manifest := dep.NewManifest()
lock := &dep.Lock{}

for _, pkg := range g.yaml.Imports {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dep/govend_importer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestGovendConfig_Import(t *testing.T) {
// Disable verbose so that we don't print values that change each test run
g := newGovendImporter(logger, false, sm)
if !g.HasDepMetadata(projectRoot) {
t.Fatal("Expected the importer to detect godep configuration file")
t.Fatal("Expected the importer to detect govend configuration file")
}

m, l, err := g.Import(projectRoot, testProjectRoot)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"github.com/sdboyer/deptest",
"github.com/sdboyer/deptestdos"
]
}
}

0 comments on commit 4603971

Please sign in to comment.