From f5fe313dc01f35587d0376df47457d3ac6e3b700 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 8 Jan 2023 13:45:46 +0100 Subject: [PATCH] Fix build with -tags gokrazy (#5716) Before this commit, go build -tags gokrazy ./... would fail with: github.com/evcc-io/evcc/server/updater server/updater/run_gokrazy.go:21:27: not enough arguments in call to NewRepo have (string, string) want (*util.Logger, string, string) --- server/updater/run_gokrazy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/updater/run_gokrazy.go b/server/updater/run_gokrazy.go index 90c7ea74e..f40828d25 100644 --- a/server/updater/run_gokrazy.go +++ b/server/updater/run_gokrazy.go @@ -18,7 +18,7 @@ func Run(log *util.Logger, httpd webServer, outChan chan<- util.Param) { u := &watch{ log: log, outChan: outChan, - repo: NewRepo(owner, repository), + repo: NewRepo(log, owner, repository), } httpd.Router().PathPrefix("/api/update").HandlerFunc(u.updateHandler)