We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc7b70 commit 33eab19Copy full SHA for 33eab19
src/version.js
@@ -55,9 +55,10 @@ module.exports = (store) => {
55
log('comparing version: %s and %s', version, expected)
56
57
// Version 6 and 7 are the same
58
- expected = expected === 6 ? expected = 7 : expected
+ // 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)
60
- if (version !== expected) {
61
+ if (version !== expected && !compatibleVersion) {
62
return callback(new Error(`version mismatch: expected v${expected}, found v${version}`))
63
}
64
callback()
0 commit comments