From 2a1cc1d16a38dd1fcaa082bfa4377cbc313edcc8 Mon Sep 17 00:00:00 2001 From: rapthead Date: Wed, 19 Jun 2024 20:15:51 +0300 Subject: [PATCH] fix version info --- .goreleaser.yaml | 2 +- README.md | 2 ++ buildinfo/buildinfo.go | 3 --- cmd/framer/main.go | 5 +++-- 4 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 buildinfo/buildinfo.go diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4b362fa..116b9ae 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -24,7 +24,7 @@ builds: - amd64 - arm64 ldflags: - - -X github.com/ozontech/framer/buildinfo.Version={{.Version}} + - -X main.Version={{.Version}} archives: - format: tar.gz diff --git a/README.md b/README.md index 51e8576..555cade 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ framer is the most performant grpc load generator ## Performance ![benchmark chart](./assets/benchmark_chart.png) + +Load generators was limited in 2 CPU. Load generators configurations are available in [benchmarks directory](./benchmarks) ### How we achive this performance values? diff --git a/buildinfo/buildinfo.go b/buildinfo/buildinfo.go deleted file mode 100644 index d96c11d..0000000 --- a/buildinfo/buildinfo.go +++ /dev/null @@ -1,3 +0,0 @@ -package buildinfo - -const Version = "unknown" diff --git a/cmd/framer/main.go b/cmd/framer/main.go index f938d94..d4f76f2 100644 --- a/cmd/framer/main.go +++ b/cmd/framer/main.go @@ -9,7 +9,6 @@ import ( "github.com/alecthomas/kong" mangokong "github.com/alecthomas/mango-kong" - "github.com/ozontech/framer/buildinfo" ) var CLI struct { @@ -20,12 +19,14 @@ var CLI struct { DebugServer bool `help:"Enable debug server."` } +var Version = "unknown" + type VersionFlag string func (v VersionFlag) Decode(ctx *kong.DecodeContext) error { return nil } func (v VersionFlag) IsBool() bool { return true } func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error { - fmt.Println(buildinfo.Version) + fmt.Println(Version) app.Exit(0) return nil }