Compile error

This commit is contained in:
Laszlo Fogas 2019-11-12 21:49:38 +01:00
parent bb88be5060
commit 16765d939d
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ func handleVersion(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", "text/json")
json.NewEncoder(w).Encode(versionResp{
Source: "https://github.com/laszlocph/woodpecker",
Version: version.Version.String(),
Version: version.String(),
})
}

View file

@ -28,7 +28,7 @@ import (
func main() {
app := cli.NewApp()
app.Name = "drone-agent"
app.Version = version.Version.String()
app.Version = version.String()
app.Usage = "drone agent"
app.Action = loop
app.Commands = []cli.Command{