From bb777af05fc186fde9dae691c4ad65b71dfb3662 Mon Sep 17 00:00:00 2001 From: Scott Brenner Date: Mon, 19 Aug 2024 16:14:17 -0700 Subject: [PATCH 1/2] FIX: Full installation of cfn-lint package --- lib/utils/installCLI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/installCLI.js b/lib/utils/installCLI.js index 6ebc9fb..afbe571 100644 --- a/lib/utils/installCLI.js +++ b/lib/utils/installCLI.js @@ -37,7 +37,7 @@ module.exports = { "pip", "install", "--upgrade", - `cfn-lint==${version}`, + `cfn-lint[full]==${version}`, ]); // Symlink from separate directory so only CFN LINT CLI is added to PATH From 858e4a21602a887543fdee36f31705fbeccef5c9 Mon Sep 17 00:00:00 2001 From: Scott Brenner Date: Mon, 19 Aug 2024 23:33:54 +0000 Subject: [PATCH 2/2] FIX: test, npm run all --- dist/index.js | 4 ++-- tests/setup.test.js | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index b87a0c3..c7e308f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -165,7 +165,7 @@ module.exports = { "pip", "install", "--upgrade", - `cfn-lint==${version}`, + `cfn-lint[full]==${version}`, ]); // Symlink from separate directory so only CFN LINT CLI is added to PATH @@ -4332,4 +4332,4 @@ const setup = __nccwpck_require__(7391); module.exports = __webpack_exports__; /******/ })() -; +; \ No newline at end of file diff --git a/tests/setup.test.js b/tests/setup.test.js index 4c3f7cd..33cedff 100644 --- a/tests/setup.test.js +++ b/tests/setup.test.js @@ -58,7 +58,10 @@ test.each([ expect(io.which).toHaveBeenCalledWith(test.expected.python, true); expect(exec.exec).toHaveBeenCalledWith( expect.anything(), - expect.arrayContaining(["install", `cfn-lint==${test.expected.version}`]), + expect.arrayContaining([ + "install", + `cfn-lint[full]==${test.expected.version}`, + ]), ); expect(core.addPath).toHaveBeenCalledTimes(1); });