You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-11-06 09:09:29 +02:00
chore: gofumpt & lint (#2190)
Signed-off-by: Carlos Becker <caarlos0@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5866b9cb63
commit
860b4a8f81
@@ -29,7 +29,7 @@ func TestExecute(t *testing.T) {
|
||||
|
||||
// Preload artifacts
|
||||
ctx.Artifacts = artifact.New()
|
||||
var folder = t.TempDir()
|
||||
folder := t.TempDir()
|
||||
for _, a := range []struct {
|
||||
id string
|
||||
ext string
|
||||
@@ -43,8 +43,8 @@ func TestExecute(t *testing.T) {
|
||||
{"checksum", "sum", artifact.Checksum},
|
||||
{"signature", "sig", artifact.Signature},
|
||||
} {
|
||||
var file = filepath.Join(folder, "a."+a.ext)
|
||||
require.NoError(t, os.WriteFile(file, []byte("lorem ipsum"), 0644))
|
||||
file := filepath.Join(folder, "a."+a.ext)
|
||||
require.NoError(t, os.WriteFile(file, []byte("lorem ipsum"), 0o644))
|
||||
ctx.Artifacts.Add(&artifact.Artifact{
|
||||
Name: "a." + a.ext,
|
||||
Goos: "linux",
|
||||
|
||||
Reference in New Issue
Block a user