Skip to content

Commit

Permalink
Hard-code 'main' module name until bug upstream in Go modules is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Sep 13, 2019
1 parent 839507e commit 1d1e194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func goModule(mod *debug.Module) *debug.Module {
// TODO: track related Go issue: https://github.com/golang/go/issues/29228
// 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 {
if dep.Path == "github.com/caddyserver/caddy/v2" {
return dep
}
}
Expand Down

0 comments on commit 1d1e194

Please # to comment.