Browse Source

Fix the yaml version value

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev 6 năm trước cách đây
mục cha
commit
4e2a1a819a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      cmd/hercules/root.go

+ 1 - 1
cmd/hercules/root.go

@@ -265,7 +265,7 @@ func printResults(
 	commonResult := results[nil].(*hercules.CommonAnalysisResult)
 
 	fmt.Println("hercules:")
-	fmt.Println("  version: 3")
+	fmt.Printf("  version: %d\n", hercules.BinaryVersion)
 	fmt.Println("  hash:", hercules.BinaryGitHash)
 	fmt.Println("  repository:", uri)
 	fmt.Println("  begin_unix_time:", commonResult.BeginTime)