Skip to content

Commit 19f1960

Browse files
committed
Upgrade to go 1.24
1 parent 59a6fcd commit 19f1960

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2.1
22
jobs:
33
build:
44
docker:
5-
- image: cimg/go:1.23.6
5+
- image: cimg/go:1.24.1
66

77
environment:
88
GOPATH: /home/circleci/go
@@ -32,7 +32,7 @@ jobs:
3232

3333
deploy-master:
3434
docker:
35-
- image: cimg/go:1.23.6
35+
- image: cimg/go:1.24.1
3636

3737
environment:
3838
GOPATH: /home/circleci/go
@@ -58,7 +58,7 @@ jobs:
5858

5959
deploy-release:
6060
docker:
61-
- image: cimg/go:1.23.6
61+
- image: cimg/go:1.24.1
6262

6363
environment:
6464
GOPATH: /home/circleci/go

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23.6 AS build-env
1+
FROM golang:1.24.1 AS build-env
22
WORKDIR /usr/local/go/src/github.com/SpectoLabs/hoverfly
33
COPY . /usr/local/go/src/github.com/SpectoLabs/hoverfly
44
RUN cd core/cmd/hoverfly && CGO_ENABLED=0 GOOS=linux go install -ldflags "-s -w"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/SpectoLabs/hoverfly
22

3-
go 1.23.6
3+
go 1.24.1
44

55
require (
66
github.com/ChrisTrenkamp/xsel v0.9.16

hoverctl/cmd/start.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ hoverctl configuration file.
124124
hasLogOutputFile = true
125125
}
126126
if logOutput != "console" && logOutput != "file" {
127-
handleIfError(fmt.Errorf("Unknown logs-output value: " + logOutput))
127+
handleIfError(fmt.Errorf("unknown logs-output value: %s", logOutput))
128128
}
129129
}
130130
if !hasLogOutputFile {
131131
cmd.Flags().Visit(func(f *pflag.Flag) {
132132
if f.Name == "logs-file" {
133-
handleIfError(fmt.Errorf("Flag -logs-file is not allowed unless -logs-output is set to 'file'."))
133+
handleIfError(fmt.Errorf("flag -logs-file is not allowed unless -logs-output is set to 'file'"))
134134
}
135135
})
136136
}

hoverctl/cmd/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func askForInput(value string, sensitive bool) string {
5555
reader := bufio.NewReader(os.Stdin)
5656

5757
for {
58-
fmt.Printf(value + ": ")
58+
fmt.Printf( "%s: ", value)
5959
if sensitive {
6060
responseBytes, err := terminal.ReadPassword(int(os.Stdin.Fd()))
6161
handleIfError(err)

0 commit comments

Comments
 (0)