mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-22 16:46:53 +01:00
Hard-code 'main' module name until bug upstream in Go modules is fixed
See https://github.com/golang/go/issues/29228
This commit is contained in:
parent
839507e24e
commit
1d1e194229
1 changed files with 1 additions and 1 deletions
2
caddy.go
2
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
|
// 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.
|
// once that issue is fixed, we should just be able to use bi.Main... hopefully.
|
||||||
for _, dep := range bi.Deps {
|
for _, dep := range bi.Deps {
|
||||||
if dep.Path == mod.Path {
|
if dep.Path == "github.com/caddyserver/caddy/v2" {
|
||||||
return dep
|
return dep
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue