Skip to content

Commit 2234b8c

Browse files
authored
Merge pull request #6452 from crazy-max/alpine-3.23
update alpine to 3.23
2 parents 1885684 + 2324e72 commit 2234b8c

File tree

8 files changed

+20
-8
lines changed

8 files changed

+20
-8
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ARG GOTESTSUM_VERSION=v1.13.0
1919
ARG DELVE_VERSION=v1.25.2
2020

2121
ARG EXPORT_BASE=alpine
22-
ARG ALPINE_VERSION=3.22
22+
ARG ALPINE_VERSION=3.23
2323
ARG UBUNTU_VERSION=24.04
2424

2525
ARG GO_VERSION=1.25

hack/dockerfiles/archutil.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# check=error=true
33

44
ARG GO_VERSION=1.25
5-
ARG ALPINE_VERSION=3.22
5+
ARG ALPINE_VERSION=3.23
66
ARG DEBIAN_VERSION=trixie
77

88
ARG BUILD_LOONG64=${TARGETPLATFORM#linux/amd64}

hack/dockerfiles/authors.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile-upstream:master
22

3-
ARG ALPINE_VERSION=3.22
3+
ARG ALPINE_VERSION=3.23
44

55
FROM alpine:${ALPINE_VERSION} AS gen
66
RUN apk add --no-cache git

hack/dockerfiles/docs-dockerfile.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22

33
ARG GO_VERSION=1.25
4-
ARG ALPINE_VERSION=3.22
4+
ARG ALPINE_VERSION=3.23
55

66
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golatest
77

hack/dockerfiles/docs.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22

33
ARG GO_VERSION=1.25
4-
ARG ALPINE_VERSION=3.22
4+
ARG ALPINE_VERSION=3.23
55

66
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golatest
77

hack/dockerfiles/lint.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile-upstream:master
22

33
ARG GO_VERSION=1.25
4-
ARG ALPINE_VERSION=3.22
4+
ARG ALPINE_VERSION=3.23
55
ARG XX_VERSION=1.6.1
66
ARG PROTOLINT_VERSION=0.50.5
77
ARG GOLANGCI_LINT_VERSION=v2.1.5

hack/dockerfiles/vendor.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile-upstream:master
22

33
ARG GO_VERSION=1.25
4-
ARG ALPINE_VERSION=3.22
4+
ARG ALPINE_VERSION=3.23
55
ARG MODOUTDATED_VERSION=v0.9.0
66

77
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base

source/git/source.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ func (gs *gitSourceHandler) tryRemoteFetch(ctx context.Context, g session.Group,
904904
// only hope is to abandon the existing shared repo and start a fresh one
905905
return nil, &wouldClobberExistingTagError{err}
906906
}
907-
if strings.Contains(err.Error(), "(unable to update local ref)") && strings.Contains(err.Error(), "some local refs could not be updated;") {
907+
if isUnableToUpdateLocalRef(err) {
908908
// this can happen if a branch updated in remote so that old branch
909909
// is now a parent dir of a new branch
910910
return nil, &unableToUpdateLocalRefError{err}
@@ -1156,6 +1156,18 @@ func (e *unableToUpdateLocalRefError) Unwrap() error {
11561156
return e.error
11571157
}
11581158

1159+
func isUnableToUpdateLocalRef(err error) bool {
1160+
if err == nil {
1161+
return false
1162+
}
1163+
msg := err.Error()
1164+
if !strings.Contains(msg, "some local refs could not be updated;") {
1165+
return false
1166+
}
1167+
return strings.Contains(msg, "(unable to update local ref)") ||
1168+
strings.Contains(msg, "refname conflict")
1169+
}
1170+
11591171
func (gs *gitSourceHandler) emptyGitCli(ctx context.Context, g session.Group, opts ...gitutil.Option) (*gitutil.GitCLI, func() error, error) {
11601172
var cleanups []func() error
11611173
cleanup := func() error {

0 commit comments

Comments
 (0)