X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ca06cfbda0e84d469f7810a280cfa4dfa8997260..66fc74001e777ac7ceff2b02cfc459b1368f42f3:/services/crunch-dispatch-local/crunch-dispatch-local.go?ds=sidebyside diff --git a/services/crunch-dispatch-local/crunch-dispatch-local.go b/services/crunch-dispatch-local/crunch-dispatch-local.go index c1d6d562a2..279327ba18 100644 --- a/services/crunch-dispatch-local/crunch-dispatch-local.go +++ b/services/crunch-dispatch-local/crunch-dispatch-local.go @@ -21,9 +21,10 @@ import ( "git.curoverse.com/arvados.git/sdk/go/arvados" "git.curoverse.com/arvados.git/sdk/go/arvadosclient" "git.curoverse.com/arvados.git/sdk/go/dispatch" - arvadosVersion "git.curoverse.com/arvados.git/sdk/go/version" ) +var version = "dev" + func main() { err := doMain() if err != nil { @@ -61,11 +62,11 @@ func doMain() error { // Print version information if requested if *getVersion { - fmt.Printf("Version: %s\n", arvadosVersion.GetVersion()) - os.Exit(0) + fmt.Printf("crunch-dispatch-local %s\n", version) + return nil } - log.Printf("crunch-dispatch-local %q started", arvadosVersion.GetVersion()) + log.Printf("crunch-dispatch-local %s started", version) runningCmds = make(map[string]*exec.Cmd)