Skip to content

Commit

Permalink
add comment to indicate source of fs.go
Browse files Browse the repository at this point in the history
Signed-off-by: Yagnesh Mistry <ysh@live.in>
(cherry picked from commit b66ae74)
  • Loading branch information
ysh7 authored and mattfarina committed Oct 31, 2019
1 parent 76c6cff commit e13bc94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/third_party/dep/fs/fs.go
Expand Up @@ -42,6 +42,10 @@ import (
"github.com/pkg/errors"
)

// fs contains a copy of a few functions from dep tool code to avoid a dependency on golang/dep.
// This code is copied from https://github.com/golang/dep/blob/37d6c560cdf407be7b6cd035b23dba89df9275cf/internal/fs/fs.go
// No changes to the code were made other than removing some unused functions

// RenameWithFallback attempts to rename a file or directory, but falls back to
// copying in the event of a cross-device link error. If the fallback copy
// succeeds, src is still removed, emulating normal rename behavior.
Expand Down

0 comments on commit e13bc94

Please sign in to comment.