From b66ae7493f11917e3d9245273c2e3388b41bb98b Mon Sep 17 00:00:00 2001 From: Yagnesh Mistry Date: Wed, 23 Oct 2019 01:26:43 +0530 Subject: [PATCH] add comment to indicate source of fs.go Signed-off-by: Yagnesh Mistry --- internal/third_party/dep/fs/fs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/third_party/dep/fs/fs.go b/internal/third_party/dep/fs/fs.go index c8b41a098..832592197 100644 --- a/internal/third_party/dep/fs/fs.go +++ b/internal/third_party/dep/fs/fs.go @@ -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.