Skip to content

Commit 33eab19

Browse files
vasco-santosjacobheun
authored andcommitted
fix: repo should not break-from-v6-to-v7
1 parent 9fc7b70 commit 33eab19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/version.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ module.exports = (store) => {
5555
log('comparing version: %s and %s', version, expected)
5656

5757
// Version 6 and 7 are the same
58-
expected = expected === 6 ? expected = 7 : expected
58+
// TODO: Clean up the compatibility logic. Repo feature detection would be ideal, or a better version schema
59+
const compatibleVersion = (version === 6 && expected === 7) || (expected === 6 && version === 7)
5960

60-
if (version !== expected) {
61+
if (version !== expected && !compatibleVersion) {
6162
return callback(new Error(`version mismatch: expected v${expected}, found v${version}`))
6263
}
6364
callback()

0 commit comments

Comments
 (0)