Skip to content

Commit

Permalink
update version check
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Aug 22, 2023
1 parent d19b215 commit 66d2167
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package iceberg

import (
"runtime/debug"
"strings"

"golang.org/x/exp/constraints"
)
Expand All @@ -29,9 +30,9 @@ func init() {
version = "(unknown version)"
if info, ok := debug.ReadBuildInfo(); ok {
for _, dep := range info.Deps {
switch {
case dep.Path == "github.com/apache/iceberg/go/iceberg":
if strings.HasPrefix(dep.Path, "github.com/apache/iceberg-go") {
version = dep.Version
break
}
}
}
Expand Down

0 comments on commit 66d2167

Please sign in to comment.