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

Commit 289e393

Browse files
committedMay 5, 2017
Fix integration test failure
1 parent a2ee5e2 commit 289e393

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎cmd/dep/init.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ func itemizedFeedback(m *dep.Manifest, l *dep.Lock, pkgT pkgtree.PackageTree) {
250250
// 2. loop through lock projects
251251
// 2.a. check if the projects exists in direct deps list
252252
// 2.b. if it's a direct dep:
253-
// 2.b.i. if it has a version attached, constraint dep
253+
// 2.b.i. if it has a version attached, constraints dep
254254
// 2.b.ii. if it has revision only, hint dep
255-
// 2.c. else it's a transitive dep
255+
// 2.c. else it's a transitive dep, goes into lock
256256
// 2.d. log feedback
257257

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

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

0 commit comments

Comments
 (0)