@marcel91200 / caddy Mirror · read-only / commits / 42f75a4c
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

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

Albert Shirima committed Aug 18, 2019 at 04:14 UTC 42f75a4ca94ef3fb5e15a74e5dc9ef8b4f1f0b39
1 file changed +2 -2
caddy.go
+2 -2
@@ -227,10 +227,10 @@ func goModule(mod *debug.Module) *debug.Module {
227 // once that issue is fixed, we should just be able to use bi.Main... hopefully.
228 for _, dep := range bi.Deps {
229 if dep.Path == mod.Path {
230 - return *dep
230 + return dep
231 }
232 }
233 - return bi.Main
233 + return &bi.Main
234 }
235 return mod
236 }