From 6529659455510c5d022fb435568840ca224275a7 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 1 Dec 2020 17:31:45 -0500 Subject: [PATCH] internal/providercache: staticcheck --- internal/providercache/package_install.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/providercache/package_install.go b/internal/providercache/package_install.go index 6ec0ac13d..57b388888 100644 --- a/internal/providercache/package_install.go +++ b/internal/providercache/package_install.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform/httpclient" "github.com/hashicorp/terraform/internal/copy" - copydir "github.com/hashicorp/terraform/internal/copy" "github.com/hashicorp/terraform/internal/getproviders" ) @@ -154,7 +153,7 @@ func installFromLocalDir(ctx context.Context, meta getproviders.PackageMeta, tar // these two paths are not pointing at the same physical directory on // disk. This compares the files by their OS-level device and directory // entry identifiers, not by their virtual filesystem paths. - if same, err := copydir.SameFile(absNew, absCurrent); same { + if same, err := copy.SameFile(absNew, absCurrent); same { return nil, fmt.Errorf("cannot install existing provider directory %s to itself", targetDir) } else if err != nil { return nil, fmt.Errorf("failed to determine if %s and %s are the same: %s", sourceDir, targetDir, err)