mirror of https://github.com/caddyserver/caddy.git
Fixing a compilation error (#2712)
./caddy.go:230:12: cannot use *dep (type debug.Module) as type *debug.Module in return argument ./caddy.go:233:12: cannot use bi.Main (type debug.Module) as type *debug.Module in return argument
This commit is contained in:
parent
4950ce485f
commit
42f75a4ca9
4
caddy.go
4
caddy.go
|
@ -227,10 +227,10 @@ func goModule(mod *debug.Module) *debug.Module {
|
||||||
// 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 == mod.Path {
|
||||||
return *dep
|
return dep
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return bi.Main
|
return &bi.Main
|
||||||
}
|
}
|
||||||
return mod
|
return mod
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue