Commit 17371e2
authored
fix: prerelease generated version strings that could not be compared (#72)
fix an issue where functions like PHP's `version_compare` would
incorrectly compare a PR build to a pre-existing published version.
we now always append the number of "commits since tag" number so that
any build is more likely to be able to be correctly compared and return
a greater version number than actual older versions
fixes INT-8761 parent d595c1e commit 17371e2
1 file changed
Lines changed: 5 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
91 | | - | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 98 | | |
109 | 99 | | |
110 | 100 | | |
111 | 101 | | |
112 | 102 | | |
| 103 | + | |
113 | 104 | | |
114 | 105 | | |
115 | 106 | | |
| |||
0 commit comments