From d1f2b23f573bf6b8685f72ed52224af32df7ae1a Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Sun, 22 Jan 2023 19:20:48 -0500 Subject: [PATCH 1/2] Run CI on Ubuntu 22.04 (no Python 2, hopefully) --- .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 1963b6f5..e08bf005 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: [push, pull_request, workflow_dispatch] jobs: Test-Git-Meta: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." - run: sudo apt-get install libkrb5-dev From c0cfb3aa8a7c16b8dbee1298ac6196c67e534856 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Sun, 22 Jan 2023 19:53:43 -0500 Subject: [PATCH 2/2] Force using latest node-gyp for nodegit, for Python 3 support The most recent stable release of nodegit still depends on node-gyp ^4, which doesn't have Python 3 support. More recent versions support Python 3 and even drop Python 2. Until a non-alpha release of nodegit 0.28 is out, we can just override the dependency resolution, which seems to work fine. (Upstream nodegit did not make any interesting code changes when upgrading their node-gyp dependency.) --- node/package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node/package.json b/node/package.json index 15d4e212..597bd96a 100644 --- a/node/package.json +++ b/node/package.json @@ -43,6 +43,9 @@ "rimraf": "", "split": "" }, + "resolutions": { + "nodegit/node-gyp": "9.3.1" + }, "devDependencies": { "deepcopy": "", "istanbul": "",