Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/cmd/context/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ token = "super secret token"
}

testCases := []testCase{
{
{ //nolint:gosec
name: "new context",
args: []string{"new-context"},
isTerm: true,
Expand All @@ -64,7 +64,7 @@ Context new-context created and activated
err: "non-interactive tty detected. Use --token-from-env to use HCLOUD_TOKEN from the environment",
expErr: "Error: non-interactive tty detected. Use --token-from-env to use HCLOUD_TOKEN from the environment\n",
},
{
{ //nolint:gosec
name: "existing context",
args: []string{"my-context"},
isTerm: true,
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func FormatHcloudError(err error) string {
errBuilder.WriteString(hcloudErr.Error())
for _, field := range details.Fields {
fieldMsg := strings.Join(field.Messages, ", ")
errBuilder.WriteString(fmt.Sprintf("\n- %s: %s", field.Name, fieldMsg))
fmt.Fprintf(&errBuilder, "\n- %s: %s", field.Name, fieldMsg)
}
return errBuilder.String()

Expand Down
2 changes: 1 addition & 1 deletion mise.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tools]
go = "1.25.8"
"go:go.uber.org/mock/mockgen" = "v0.6.0"
"github:golangci/golangci-lint" = "2.8.0"
"github:golangci/golangci-lint" = "2.11.3"
"github:goreleaser/goreleaser" = "v2.14.3"
"github:anchore/quill" = "v0.7.1"
"github:jstemmer/go-junit-report" = "v2.1.0"
3 changes: 2 additions & 1 deletion scripts/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"log"
"os"
"strconv"

"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
Expand All @@ -29,7 +30,7 @@ func main() {
case "manpages":
err = generateManPages()
default:
log.Fatalln("Unknown argument:", arg)
log.Fatalln("Unknown argument:", strconv.Quote(arg))
}
if err != nil {
log.Fatalln(err)
Expand Down
Loading