summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Shirima <agbaraka@gmail.com>2019-08-18 04:14:55 +0300
committerMatt Holt <mholt@users.noreply.github.com>2019-08-17 19:14:55 -0600
commit42f75a4ca94ef3fb5e15a74e5dc9ef8b4f1f0b39 (patch)
tree6b1fb5d980bce20dc3b5d96e81cfcde577ccfd9a
parent4950ce485f7d931890fcfd2ee287b6df1b5db435 (diff)
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
-rw-r--r--caddy.go4
1 files changed, 2 insertions, 2 deletions
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
}