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

dep: Use hidden tempdir for old vendor #1309

Merged
merged 1 commit into from
Oct 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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