diff --git a/__tests__/extensions.test.ts b/__tests__/extensions.test.ts index 6cc64c0b..dd52cc62 100644 --- a/__tests__/extensions.test.ts +++ b/__tests__/extensions.test.ts @@ -129,13 +129,14 @@ describe('Extension tests', () => { it('checking addExtensionOnDarwin', async () => { let darwin: string = await extensions.addExtension( - 'Xdebug, pcov, grpc, protobuf, swoole, sqlite, oci8, pdo_oci, :intl, ast-beta, grpc-1.2.3', + 'Xdebug, pcov, grpc, igbinary, protobuf, swoole, sqlite, oci8, pdo_oci, :intl, ast-beta, grpc-1.2.3', '7.2', 'darwin' ); expect(darwin).toContain('add_brew_extension xdebug'); expect(darwin).toContain('add_brew_extension pcov'); expect(darwin).toContain('add_brew_extension grpc'); + expect(darwin).toContain('add_brew_extension igbinary'); expect(darwin).toContain('add_brew_extension protobuf'); expect(darwin).toContain('add_brew_extension swoole'); expect(darwin).toContain('pecl_install sqlite3'); diff --git a/dist/index.js b/dist/index.js index d088d2fb..d361b6d6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2884,10 +2884,10 @@ async function addExtensionDarwin(extension_csv, version) { case /(5\.[3-6]|7\.0)pcov/.test(version_extension): add_script += await utils.getUnsupportedLog('pcov', version, 'darwin'); return; - // match 5.6xdebug to 8.9xdebug, 5.6swoole to 7.4swoole - // match 5.6grpc to 7.4grpc, 5.6protobuf to 7.4protobuf + // match 5.6xdebug to 8.9xdebug, 5.6igbinary to 8.9igbinary + // match 5.6grpc to 7.4grpc, 5.6protobuf to 7.4protobuf, 5.6swoole to 7.4swoole // match 7.1pcov to 8.9pcov - case /(5\.6|7\.[0-4]|8\.[0-9])xdebug/.test(version_extension): + case /(5\.6|7\.[0-4]|8\.[0-9])(xdebug|igbinary)/.test(version_extension): case /(5\.6|7\.[0-4])(grpc|protobuf|swoole)/.test(version_extension): case /(7\.[1-4]|8\.[0-9])pcov/.test(version_extension): command = 'add_brew_extension ' + ext_name; diff --git a/src/extensions.ts b/src/extensions.ts index 485cd016..7c00bc1d 100644 --- a/src/extensions.ts +++ b/src/extensions.ts @@ -64,10 +64,10 @@ export async function addExtensionDarwin( case /(5\.[3-6]|7\.0)pcov/.test(version_extension): add_script += await utils.getUnsupportedLog('pcov', version, 'darwin'); return; - // match 5.6xdebug to 8.9xdebug, 5.6swoole to 7.4swoole - // match 5.6grpc to 7.4grpc, 5.6protobuf to 7.4protobuf + // match 5.6xdebug to 8.9xdebug, 5.6igbinary to 8.9igbinary + // match 5.6grpc to 7.4grpc, 5.6protobuf to 7.4protobuf, 5.6swoole to 7.4swoole // match 7.1pcov to 8.9pcov - case /(5\.6|7\.[0-4]|8\.[0-9])xdebug/.test(version_extension): + case /(5\.6|7\.[0-4]|8\.[0-9])(xdebug|igbinary)/.test(version_extension): case /(5\.6|7\.[0-4])(grpc|protobuf|swoole)/.test(version_extension): case /(7\.[1-4]|8\.[0-9])pcov/.test(version_extension): command = 'add_brew_extension ' + ext_name;