10666: Formatting fixes.
[arvados.git] / services / crunch-dispatch-slurm / crunch-dispatch-slurm.go
index e743fa585451b732734e2a3e10ec6d1c60298221..d322b0f3f6dcf53735df8e920f07d0329397bbbf 100644 (file)
@@ -23,10 +23,11 @@ import (
        "git.curoverse.com/arvados.git/sdk/go/arvadosclient"
        "git.curoverse.com/arvados.git/sdk/go/config"
        "git.curoverse.com/arvados.git/sdk/go/dispatch"
-       arvadosVersion "git.curoverse.com/arvados.git/sdk/go/version"
        "github.com/coreos/go-systemd/daemon"
 )
 
+var version = "dev"
+
 // Config used by crunch-dispatch-slurm
 type Config struct {
        Client arvados.Client
@@ -79,11 +80,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-slurm %s\n", version)
+               return nil
        }
 
-       log.Printf("crunch-dispatch-slurm %q started", arvadosVersion.GetVersion())
+       log.Printf("crunch-dispatch-slurm %s started", version)
 
        err := readConfig(&theConfig, *configPath)
        if err != nil {