diff options
author | Albert Shirima <agbaraka@gmail.com> | 2019-08-18 04:14:55 +0300 |
---|---|---|
committer | Matt Holt <mholt@users.noreply.github.com> | 2019-08-17 19:14:55 -0600 |
commit | 42f75a4ca94ef3fb5e15a74e5dc9ef8b4f1f0b39 (patch) | |
tree | 6b1fb5d980bce20dc3b5d96e81cfcde577ccfd9a | |
parent | 4950ce485f7d931890fcfd2ee287b6df1b5db435 (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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |