Skip to content

Commit

Permalink
Adding some additional explanatory comments based on code review feed…
Browse files Browse the repository at this point in the history
…back
  • Loading branch information
absurdfarce committed Sep 18, 2024
1 parent ce76a83 commit dad2fbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func init() {
if d.Path == mainPackage {
driverName = defaultDriverName
driverVersion = d.Version
// If there's a replace directive in play for the gocql package
// then use that information for path and version instead. This
// will allow forks or other local packages to clearly identify
// themselves as distinct from mainPackage above.
if d.Replace != nil {
driverName = d.Replace.Path
driverVersion = d.Replace.Version
Expand Down

0 comments on commit dad2fbe

Please sign in to comment.