From 952b41de5f7cd556386b9dda1b405c7144b2e925 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 10 May 2026 17:06:49 +0000 Subject: [PATCH 1/2] Refresh apt cache before installing OpENer build deps The hosted runner's apt index pinned libcap-dev to 2.66-5ubuntu2.2, but the noble-updates mirror only carries a newer revision now, so the install aborted with a 404 and exit code 100 before OpENer could build. Run `apt-get update` first so the index points at versions the mirror actually has. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 598a27c..34a8fbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - run: npm run test working-directory: node-drivers - - run: sudo apt-get install -y cmake binutils libcap-dev + - run: sudo apt-get update && sudo apt-get install -y cmake binutils libcap-dev - uses: actions/checkout@v4 with: From 597183f326c4fbb23581fa9fbc267b85ecc90287 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 10 May 2026 17:13:11 +0000 Subject: [PATCH 2/2] Add .js extension to eip integration test import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Node 20 ESM resolution requires explicit file extensions; the bare '../../src/index' import fails with ERR_MODULE_NOT_FOUND. The modbus integration client already uses '.js' — match it here. --- test/integration/eip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/eip.js b/test/integration/eip.js index 9a3c6c0..5e2cf7f 100644 --- a/test/integration/eip.js +++ b/test/integration/eip.js @@ -1,5 +1,5 @@ import assert from 'assert'; -import { TCP, CIP } from '../../src/index'; +import { TCP, CIP } from '../../src/index.js'; const tcpLayer = new TCP({ host: '127.0.0.1', port: 44818 }); const eipLayer = new CIP.EIP(tcpLayer);