From aea54168d0a1b8a4250f43cf79c704fc718f74d3 Mon Sep 17 00:00:00 2001 From: galargh Date: Fri, 21 Jun 2024 16:34:31 +0100 Subject: [PATCH] chore: gofmt --- actions/env.go | 7 ++++--- cmd/kuboreleaser/main.go | 2 +- github/github.go | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/actions/env.go b/actions/env.go index 8ffcbbb..fd9c95f 100644 --- a/actions/env.go +++ b/actions/env.go @@ -8,10 +8,11 @@ import ( "github.com/ipfs/kuboreleaser/util" ) -type Env struct {} +type Env struct{} //go:embed embed/.env.sh var envScript string + //go:embed embed/.env.template var envTemplate string @@ -45,9 +46,9 @@ func (ctx Env) Run() error { } cmd := util.Command{ - Name: envScriptFile.Name(), + Name: envScriptFile.Name(), Stdin: os.Stdin, - Env: append(os.Environ(), fmt.Sprintf("ENV_TEMPLATE=%s", envTemplateFile.Name())), + Env: append(os.Environ(), fmt.Sprintf("ENV_TEMPLATE=%s", envTemplateFile.Name())), } err = cmd.Run() if err != nil { diff --git a/cmd/kuboreleaser/main.go b/cmd/kuboreleaser/main.go index ffafde1..d0d235a 100644 --- a/cmd/kuboreleaser/main.go +++ b/cmd/kuboreleaser/main.go @@ -121,7 +121,7 @@ func main() { }, Commands: []*cli.Command{ { - Name: "env", + Name: "env", Usage: "Generate .env file in your current directory", Action: func(c *cli.Context) error { action := actions.Env{} diff --git a/github/github.go b/github/github.go index 9b072d9..c3e619e 100644 --- a/github/github.go +++ b/github/github.go @@ -715,7 +715,7 @@ func (c *Client) CreateRelease(owner, repo, tag, name, body string, prerelease b "name": name, "body": body, "prerelease": prerelease, - "latest": latest, + "latest": latest, }).Debug("Creating release...") makeLatest := "false"