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

Commit

Permalink
Fix integration test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
darkowlzz committed May 5, 2017
1 parent a2ee5e2 commit 289e393
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/dep/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ func itemizedFeedback(m *dep.Manifest, l *dep.Lock, pkgT pkgtree.PackageTree) {
// 2. loop through lock projects
// 2.a. check if the projects exists in direct deps list
// 2.b. if it's a direct dep:
// 2.b.i. if it has a version attached, constraint dep
// 2.b.i. if it has a version attached, constraints dep
// 2.b.ii. if it has revision only, hint dep
// 2.c. else it's a transitive dep
// 2.c. else it's a transitive dep, goes into lock
// 2.d. log feedback

// Extract direct external deps
Expand Down Expand Up @@ -290,7 +290,7 @@ func itemizedFeedback(m *dep.Manifest, l *dep.Lock, pkgT pkgtree.PackageTree) {
}

// Get manifest version if available
if pp, ok := m.Dependencies[lock.Ident().ProjectRoot]; ok {
if pp, ok := m.Dependencies[lock.Ident().ProjectRoot]; ok && pp.Constraint != nil {
cf.Version = pp.Constraint.String()
}

Expand Down

0 comments on commit 289e393

Please sign in to comment.