mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 07:31:20 +00:00
caddy1: fix build (#97988)
main.go gets overwritten in order to build caddy with telemetry disabled, but the global variable `run` got neglected, and this in turn broke the test in caddy/main_test.go. This commit fixes that, and build can now complete.
This commit is contained in:
parent
10e2e5be30
commit
c814b0ef24
|
@ -21,9 +21,10 @@ buildGoModule rec {
|
|||
cat << EOF > caddy/main.go
|
||||
package main
|
||||
import "github.com/caddyserver/caddy/caddy/caddymain"
|
||||
var run = caddymain.Run // replaced for tests
|
||||
func main() {
|
||||
caddymain.EnableTelemetry = false
|
||||
caddymain.Run()
|
||||
run()
|
||||
}
|
||||
EOF
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue