1
0
Fork 1
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:
pancho horrillo 2020-09-14 21:31:08 +02:00 committed by GitHub
parent 10e2e5be30
commit c814b0ef24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';