10666: Replaced 'version' package with 'version' var
[arvados.git] / services / crunchstat / crunchstat.go
index 454a5fc3a4363d24b6f858183da6d404750ea6a1..248ec6259db11a94c68b4c602169f107ab531c27 100644 (file)
@@ -17,7 +17,6 @@ import (
        "time"
 
        "git.curoverse.com/arvados.git/lib/crunchstat"
-       arvadosVersion "git.curoverse.com/arvados.git/sdk/go/version"
 )
 
 const MaxLogLine = 1 << 14 // Child stderr lines >16KiB will be split
@@ -25,6 +24,7 @@ const MaxLogLine = 1 << 14 // Child stderr lines >16KiB will be split
 var (
        signalOnDeadPPID  int = 15
        ppidCheckInterval     = time.Second
+       version               = "dev"
 )
 
 func main() {
@@ -44,11 +44,11 @@ func main() {
 
        // Print version information if requested
        if *getVersion {
-               fmt.Printf("Version: %s\n", arvadosVersion.GetVersion())
+               fmt.Printf("Version: %s\n", version)
                os.Exit(0)
        }
 
-       reporter.Logger.Printf("crunchstat %q started", arvadosVersion.GetVersion())
+       reporter.Logger.Printf("crunchstat %q started", version)
 
        if reporter.CgroupRoot == "" {
                reporter.Logger.Fatal("error: must provide -cgroup-root")