@@ -239,6 +239,10 @@ func (cmd *ensureCommand) runDefault(ctx *dep.Ctx, args []string, p *dep.Project
239
239
return nil
240
240
}
241
241
242
+ if ctx .Verbose {
243
+ ctx .Out .Printf ("%s was already in sync with imports and %s, recreating vendor/ directory" , dep .LockName , dep .ManifestName )
244
+ }
245
+
242
246
// TODO(sdboyer) The desired behavior at this point is to determine
243
247
// whether it's necessary to write out vendor, or if it's already
244
248
// consistent with the lock. However, we haven't yet determined what
@@ -385,12 +389,17 @@ func (cmd *ensureCommand) runAdd(ctx *dep.Ctx, args []string, p *dep.Project, sm
385
389
return errors .Errorf ("%s and %s are out of sync. Run a plain dep ensure to resync them before attempting to -add" , dep .ManifestName , dep .LockName )
386
390
}
387
391
388
- rm , errmap := params .RootPackageTree .ToReachMap (true , true , false , p .Manifest .IgnoredPackages ())
392
+ rm , _ := params .RootPackageTree .ToReachMap (true , true , false , p .Manifest .IgnoredPackages ())
393
+
394
+ // TODO(sdboyer) re-enable this once we ToReachMap() intelligently filters out normally-excluded (_*, .*), dirs from errmap
395
+ //rm, errmap := params.RootPackageTree.ToReachMap(true, true, false, p.Manifest.IgnoredPackages())
389
396
// Having some problematic internal packages isn't cause for termination,
390
397
// but the user needs to be warned.
391
- for fail := range errmap {
392
- ctx .Err .Printf ("Warning: %s" , fail )
393
- }
398
+ //for fail, err := range errmap {
399
+ //if _, is := err.Err.(*build.NoGoError); !is {
400
+ //ctx.Err.Printf("Warning: %s, %s", fail, err)
401
+ //}
402
+ //}
394
403
395
404
// Compile unique sets of 1) all external packages imported or required, and
396
405
// 2) the project roots under which they fall.
0 commit comments