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
Hard-code 'main' module name until bug upstream in Go modules is fixed
See https://github.com/golang/go/issues/29228
Matthew Holt committed
Sep 13, 2019 at 12:43 UTC
1d1e194229e8699b835be41713fdcff8216d6906
1 file changed
+1
-1
caddy.go
+1
-1
@@ -226,7 +226,7 @@ func goModule(mod *debug.Module) *debug.Module {
226
// TODO: track related Go issue: https://github.com/golang/go/issues/29228
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 {
229
+ if dep.Path == "github.com/caddyserver/caddy/v2" {
230
return dep
231
}
232
}