summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-09-13 12:43:28 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-09-13 12:43:28 -0600
commit1d1e194229e8699b835be41713fdcff8216d6906 (patch)
treeb4c2245a94b37e827df6d3c41a747c65d9c693df
parent839507e24e4d8d2d8052335fafb110513865efc0 (diff)
Hard-code 'main' module name until bug upstream in Go modules is fixed
See https://github.com/golang/go/issues/29228
-rw-r--r--caddy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddy.go b/caddy.go
index 521ac36..84f4dbe 100644
--- a/caddy.go
+++ b/caddy.go
@@ -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
}
}