Skip to content

Commit

Permalink
Merge pull request golang#1309 from sdboyer/hide-vendor-tmpdir
Browse files Browse the repository at this point in the history
dep: Use hidden tempdir for old vendor
  • Loading branch information
sdboyer authored Oct 24, 2017
2 parents bf2481a + 10f46e5 commit bf8f295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txn_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func (sw *SafeWriter) Write(root string, sm gps.SourceManager, examples bool, lo
if _, err := os.Stat(vendorbak); err == nil {
// If the adjacent dir already exists, bite the bullet and move
// to a proper tempdir.
vendorbak = filepath.Join(td, "vendor.orig")
vendorbak = filepath.Join(td, ".vendor.orig")
}

failerr = fs.RenameWithFallback(vpath, vendorbak)
Expand Down

0 comments on commit bf8f295

Please sign in to comment.