Skip to content

Commit

Permalink
fix: correctly parse Kong's version
Browse files Browse the repository at this point in the history
semver lib errors out if no patch is found.
Switch to ParseTolerant() which injects a `0` patch number.

Fix #117
From #118
  • Loading branch information
hbagdi authored and Travis Raines committed Apr 21, 2021
1 parent 19b5f97 commit 7066a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,5 @@ func kongVersion(config utils.KongClientConfig) (semver.Version, error) {
}

v, err := utils.CleanKongVersion(root["version"].(string))
return semver.Make(v)
return semver.ParseTolerant(v)
}

0 comments on commit 7066a2f

Please sign in to comment.