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:
parent
a0f0d01a81
commit
8e0b9405f9
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user