From 77cb76cd34b585821d04892f166ac4a126d0cf3e Mon Sep 17 00:00:00 2001 From: Dustin Oprea Date: Tue, 2 Jun 2020 15:01:01 -0400 Subject: [PATCH] common/testing_common.go: Bugfix for package-path finder --- v2/common/testing_common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/common/testing_common.go b/v2/common/testing_common.go index 705a7c5..24bbc4b 100644 --- a/v2/common/testing_common.go +++ b/v2/common/testing_common.go @@ -28,14 +28,14 @@ var ( // tests. func GetModuleRootPath() string { p, err := build.Default.Import( - "github.com/dsoprea/go-exif/v2", + "github.com/dsoprea/go-exif", build.Default.GOPATH, build.FindOnly) log.PanicIf(err) packagePath := p.Dir - return packagePath + return path.Join(packagePath, "v2") } func getTestAssetsPath() string {