Skip to content

Commit 9f93fa4

Browse files
committed
updated go version, alpine image, golang linter
1 parent 1287ea2 commit 9f93fa4

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

go.mod

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

3-
go 1.25.3
3+
go 1.26.0
44

55
require (
66
github.com/itchyny/gojq v0.12.17

internal/utils/retry_cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func (c *Client) RetriableDo(req *http.Request) (*http.Response, error) {
8080
logger.HttpRequest(req)
8181
var i int64
8282
for {
83+
// #nosec G704 -- request target is intentionally provided by CLI input.
8384
resp, err := c.HttpClient.Do(req)
8485
if c.RetryWithBackoff(logger, i, resp, err) {
8586
logger.Debugf("%d/%d\n", i, c.MaxRetry)

tools/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
FROM golang:1.25.3-alpine3.22 AS builder
2-
1+
FROM golang:1.26-alpine3.22 AS builder
32
ADD . /go/src/tcli
43
WORKDIR /go/src/tcli
54

@@ -9,10 +8,10 @@ go build -o bin/tcli \
98
-ldflags "-s -w" cmd/main.go
109

1110
# use a minimal alpine image
12-
FROM alpine:3.22.2
11+
FROM alpine:3.23.3
1312
RUN apk update --no-cache && \
1413
apk upgrade && \
15-
apk add busybox=1.37.0-r20
14+
apk add busybox=1.37.0-r30
1615

1716
# make tcli available in path
1817
COPY --from=builder /go/src/tcli/bin/tcli /usr/local/bin/tcli

tools/run_linter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
LINTER_IMAGE=golangci/golangci-lint:v2.4.0-alpine
2+
LINTER_IMAGE=golangci/golangci-lint:v2.10.1-alpine
33
DIR=${1:-$(pwd)}
44

55
# flag overrides

0 commit comments

Comments
 (0)