From 42f75a4ca94ef3fb5e15a74e5dc9ef8b4f1f0b39 Mon Sep 17 00:00:00 2001 From: Albert Shirima Date: Sun, 18 Aug 2019 04:14:55 +0300 Subject: Fixing a compilation error (#2712) ./caddy.go:230:12: cannot use *dep (type debug.Module) as type *debug.Module in return argument ./caddy.go:233:12: cannot use bi.Main (type debug.Module) as type *debug.Module in return argument --- caddy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'caddy.go') diff --git a/caddy.go b/caddy.go index c30eccf..521ac36 100644 --- a/caddy.go +++ b/caddy.go @@ -227,10 +227,10 @@ func goModule(mod *debug.Module) *debug.Module { // once that issue is fixed, we should just be able to use bi.Main... hopefully. for _, dep := range bi.Deps { if dep.Path == mod.Path { - return *dep + return dep } } - return bi.Main + return &bi.Main } return mod } -- cgit v1.2.3