@@ -180,10 +180,6 @@ func (cmd *ensureCommand) Run(ctx *dep.Ctx, args []string) error {
180
180
params .TraceLogger = ctx .Err
181
181
}
182
182
183
- if cmd .vendorOnly {
184
- return cmd .runVendorOnly (ctx , args , p , sm , params )
185
- }
186
-
187
183
statchan := make (chan map [string ]verify.VendorStatus )
188
184
var lps []gps.LockedProject
189
185
if p .Lock != nil {
@@ -211,6 +207,10 @@ func (cmd *ensureCommand) Run(ctx *dep.Ctx, args []string) error {
211
207
statchan <- status
212
208
}(filepath .Join (p .AbsRoot , "vendor" ), lps )
213
209
210
+ if cmd .vendorOnly {
211
+ return cmd .runVendorOnly (ctx , args , p , sm , params , statchan )
212
+ }
213
+
214
214
if fatal , err := checkErrors (params .RootPackageTree .Packages , p .Manifest .IgnoredPackages ()); err != nil {
215
215
if fatal {
216
216
return err
@@ -348,7 +348,7 @@ func (cmd *ensureCommand) runVendorOnly(ctx *dep.Ctx, args []string, p *dep.Proj
348
348
349
349
// Pass the same lock as old and new so that the writer will observe no
350
350
// difference, and write out only ncessary vendor/ changes.
351
- dw , err := dep .NewDeltaWriter (p .Lock , p .Lock , <- statchan , p .Manifest .PruneOptions , filepath .Join (p .AbsRoot , "vendor" ), VendorAlways )
351
+ dw , err := dep .NewDeltaWriter (p .Lock , p .Lock , <- statchan , p .Manifest .PruneOptions , filepath .Join (p .AbsRoot , "vendor" ), dep . VendorAlways )
352
352
if err != nil {
353
353
return err
354
354
}
0 commit comments