Skip to content

Commit

Permalink
fix: Explicitly disable GPG signing in git tags test (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
lox authored Feb 17, 2025
1 parent b42c6fd commit 483aef3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions it/full/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ beforeAll() {
git add .
git config user.email "[email protected]"
git config user.name "Your Name"
git config commit.gpgsign false
git commit -m 'test commit'
popd
}
Expand Down
9 changes: 6 additions & 3 deletions manifest/autoversion/git_tags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package autoversion

import (
"fmt"
"github.com/alecthomas/assert/v2"
"github.com/cashapp/hermit/errors"
"github.com/cashapp/hermit/manifest"
"os"
"os/exec"
"path"
"testing"

"github.com/alecthomas/assert/v2"
"github.com/cashapp/hermit/errors"
"github.com/cashapp/hermit/manifest"
)

func Test_GitTagsAutoVersion(t *testing.T) {
Expand All @@ -26,6 +27,8 @@ func Test_GitTagsAutoVersion(t *testing.T) {
assert.NoError(t, err)
err = runCommandInDir(tmpDir, "git", "config", "--local", "user.name", "test")
assert.NoError(t, err)
err = runCommandInDir(tmpDir, "git", "config", "--local", "commit.gpgsign", "false")
assert.NoError(t, err)
err = runCommandInDir(tmpDir, "git", "add", ".")
assert.NoError(t, err)

Expand Down

0 comments on commit 483aef3

Please sign in to comment.