add comment to indicate source of fs.go

Signed-off-by: Yagnesh Mistry <ysh@live.in>
(cherry picked from commit b66ae7493f)
pull/8287/head v2.16.0
Yagnesh Mistry 6 years ago committed by Matt Farina
parent 76c6cff625
commit e13bc94621
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -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.

Loading…
Cancel
Save