зеркало из https://github.com/golang/dep.git
Merge pull request #1478 from carolynvs/apply-prune-on-init
cmd/dep: apply default prune options on init
This commit is contained in:
Коммит
9815e4a544
|
@ -214,7 +214,7 @@ func (cmd *initCommand) Run(ctx *dep.Ctx, args []string) error {
|
||||||
ctx.Err.Printf("Old vendor backed up to %v", vendorbak)
|
ctx.Err.Printf("Old vendor backed up to %v", vendorbak)
|
||||||
}
|
}
|
||||||
|
|
||||||
sw, err := dep.NewSafeWriter(p.Manifest, nil, p.Lock, dep.VendorAlways, gps.DefaultRootPruneOptions())
|
sw, err := dep.NewSafeWriter(p.Manifest, nil, p.Lock, dep.VendorAlways, p.Manifest.PruneOptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "init failed: unable to create a SafeWriter")
|
return errors.Wrap(err, "init failed: unable to create a SafeWriter")
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче