Skip to content

Commit 1d1e194

Browse files
committed
Hard-code 'main' module name until bug upstream in Go modules is fixed
See golang/go#29228
1 parent 839507e commit 1d1e194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caddy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func goModule(mod *debug.Module) *debug.Module {
226226
// TODO: track related Go issue: https://github.com/golang/go/issues/29228
227227
// once that issue is fixed, we should just be able to use bi.Main... hopefully.
228228
for _, dep := range bi.Deps {
229-
if dep.Path == mod.Path {
229+
if dep.Path == "github.com/caddyserver/caddy/v2" {
230230
return dep
231231
}
232232
}

0 commit comments

Comments
 (0)