Skip to content

Commit 2a1cc1d

Browse files
committed
fix version info
1 parent dcced71 commit 2a1cc1d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ builds:
2424
- amd64
2525
- arm64
2626
ldflags:
27-
- -X github.com/ozontech/framer/buildinfo.Version={{.Version}}
27+
- -X main.Version={{.Version}}
2828

2929
archives:
3030
- format: tar.gz

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ framer is the most performant grpc load generator
33

44
## Performance
55
![benchmark chart](./assets/benchmark_chart.png)
6+
7+
Load generators was limited in 2 CPU.
68
Load generators configurations are available in [benchmarks directory](./benchmarks)
79

810
### How we achive this performance values?

buildinfo/buildinfo.go

Lines changed: 0 additions & 3 deletions
This file was deleted.

cmd/framer/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
"github.com/alecthomas/kong"
1111
mangokong "github.com/alecthomas/mango-kong"
12-
"github.com/ozontech/framer/buildinfo"
1312
)
1413

1514
var CLI struct {
@@ -20,12 +19,14 @@ var CLI struct {
2019
DebugServer bool `help:"Enable debug server."`
2120
}
2221

22+
var Version = "unknown"
23+
2324
type VersionFlag string
2425

2526
func (v VersionFlag) Decode(ctx *kong.DecodeContext) error { return nil }
2627
func (v VersionFlag) IsBool() bool { return true }
2728
func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error {
28-
fmt.Println(buildinfo.Version)
29+
fmt.Println(Version)
2930
app.Exit(0)
3031
return nil
3132
}

0 commit comments

Comments
 (0)