From 19964a62aed687bdf3b6c24d34cc35847ef7b51d Mon Sep 17 00:00:00 2001 From: Edouard Bozon Date: Tue, 5 Oct 2021 21:30:32 +0200 Subject: [PATCH] chore(core): disable commit gpgsign When running tests locally, if global Git config is set to sign commit with gpg then, tests are failing with `gpg failed to sign the data`, this fixes this issue. --- e2e/workspace-integrations/src/workspace.test.ts | 1 + packages/workspace/src/core/hasher/git-hasher.spec.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/e2e/workspace-integrations/src/workspace.test.ts b/e2e/workspace-integrations/src/workspace.test.ts index 2ca4e67802..a50f560b7d 100644 --- a/e2e/workspace-integrations/src/workspace.test.ts +++ b/e2e/workspace-integrations/src/workspace.test.ts @@ -505,6 +505,7 @@ describe('affected (with git)', () => { runCommand(`git init`); runCommand(`git config user.email "test@test.com"`); runCommand(`git config user.name "Test"`); + runCommand(`git config commit.gpgsign false`); runCommand( `git add . && git commit -am "initial commit" && git checkout -b main` ); diff --git a/packages/workspace/src/core/hasher/git-hasher.spec.ts b/packages/workspace/src/core/hasher/git-hasher.spec.ts index 05110df7b9..298e236b9a 100644 --- a/packages/workspace/src/core/hasher/git-hasher.spec.ts +++ b/packages/workspace/src/core/hasher/git-hasher.spec.ts @@ -12,6 +12,7 @@ describe('git-hasher', () => { run(`git init`); run(`git config user.email "test@test.com"`); run(`git config user.name "test"`); + run(`git config commit.gpgsign false`); warnSpy.mockClear(); });