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

Commit 9815e4a

Browse files
authored
Merge pull request #1478 from carolynvs/apply-prune-on-init
cmd/dep: apply default prune options on init
2 parents cf67c0a + 390fe5f commit 9815e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dep/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (cmd *initCommand) Run(ctx *dep.Ctx, args []string) error {
214214
ctx.Err.Printf("Old vendor backed up to %v", vendorbak)
215215
}
216216

217-
sw, err := dep.NewSafeWriter(p.Manifest, nil, p.Lock, dep.VendorAlways, gps.DefaultRootPruneOptions())
217+
sw, err := dep.NewSafeWriter(p.Manifest, nil, p.Lock, dep.VendorAlways, p.Manifest.PruneOptions)
218218
if err != nil {
219219
return errors.Wrap(err, "init failed: unable to create a SafeWriter")
220220
}

0 commit comments

Comments
 (0)