1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-16 03:52:12 +02:00

fix: use t.TempDir

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2023-07-17 11:56:06 +00:00
parent a0f0d01a81
commit 8e0b9405f9
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -1255,13 +1255,12 @@ func TestMeta(t *testing.T) {
}
func TestSkipSign(t *testing.T) {
folder, err := os.MkdirTemp("", "archivetest")
require.NoError(t, err)
folder := t.TempDir()
dist := filepath.Join(folder, "dist")
require.NoError(t, os.Mkdir(dist, 0o755))
require.NoError(t, os.Mkdir(filepath.Join(dist, "mybin"), 0o755))
binPath := filepath.Join(dist, "mybin", "mybin")
_, err = os.Create(binPath)
_, err := os.Create(binPath)
require.NoError(t, err)
ctx := testctx.NewWithCfg(config.Project{
ProjectName: "mybin",