Skip to content

Commit 89173cf

Browse files
committed
don't override Version if set via ldflags
1 parent 5f74e43 commit 89173cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (u *uaRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
8787

8888
func init() {
8989
info, ok := debug.ReadBuildInfo()
90-
if ok {
90+
if ok && Version == "unknown" {
9191
Version = info.Main.Version
9292
}
9393

0 commit comments

Comments
 (0)