From bd02cbeda7f9585943ec89243bdff051410fb56c Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Mon, 28 Nov 2022 16:41:46 +0800 Subject: [PATCH 1/2] set 1s delay for untar pipes to avoid spawn racing --- dl-tar/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dl-tar/index.js b/dl-tar/index.js index e9a610e..d0514ea 100644 --- a/dl-tar/index.js +++ b/dl-tar/index.js @@ -219,7 +219,7 @@ module.exports = function dlTar(...args) { return; } - observer.complete(); + setTimeout(() => observer.complete(), 1000); }); } catch (err) { ended = true; From da574057c962e5b66ee40251ff795cd14d90abd7 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Tue, 29 Nov 2022 11:24:01 +0800 Subject: [PATCH 2/2] CI runs on ubuntu-20.04 --- .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 017be26..cd0cf56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ defaults: jobs: build: - runs-on: "ubuntu-latest" + runs-on: "ubuntu-20.04" steps: - uses: "actions/checkout@v3"