From 1279274ddc570c7c4065160ed80bafab8436aa96 Mon Sep 17 00:00:00 2001 From: Andreas Fuchs Date: Wed, 22 Jul 2020 09:14:03 -0400 Subject: [PATCH] Use /tmp as the temporary dir for ssh-to-gpg This isn't great: but it might prevent the agent from complaining. --- pkgs/ssh-to-pgp/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/ssh-to-pgp/main_test.go b/pkgs/ssh-to-pgp/main_test.go index d33860b..784a678 100644 --- a/pkgs/ssh-to-pgp/main_test.go +++ b/pkgs/ssh-to-pgp/main_test.go @@ -23,7 +23,7 @@ func ok(tb testing.TB, err error) { func TestCli(t *testing.T) { _, filename, _, _ := runtime.Caller(0) assets := path.Join(path.Dir(filename), "test-assets") - tempdir, err := ioutil.TempDir("", "testdir") + tempdir, err := ioutil.TempDir("/tmp", "testdir") ok(t, err) defer os.RemoveAll(tempdir)