Skip to content

Commit

Permalink
chore: gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jun 21, 2024
1 parent 5620465 commit aea5416
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions actions/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -45,9 +46,9 @@ func (ctx Env) Run() error {
}

Check warning on line 46 in actions/env.go

View check run for this annotation

Codecov / codecov/patch

actions/env.go#L26-L46

Added lines #L26 - L46 were not covered by tests

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 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/kuboreleaser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Check warning on line 718 in github/github.go

View check run for this annotation

Codecov / codecov/patch

github/github.go#L718

Added line #L718 was not covered by tests
}).Debug("Creating release...")

makeLatest := "false"
Expand Down

0 comments on commit aea5416

Please sign in to comment.