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 committed Dec 29, 2019
1 parent 4d72f6a commit 9dda7d0
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 @@ -140,5 +140,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 9dda7d0

Please sign in to comment.