docker-alpine icon indicating copy to clipboard operation
docker-alpine copied to clipboard

🐞 Bug Report: golang:1.24-alpine Docker image has corrupt files

Open M2BARH opened this issue 6 months ago • 1 comments

Go Version

go version go1.24.1 windows/amd64 (Docker image: golang:1.24-alpine)

What did you do?

I was building my Go project in a Docker container based on golang:1.24-alpine.

To debug an issue, I ran the following:

docker run -it golang:1.24-alpine sh
cat /usr/local/go/src/os/signal/doc.go

What I see instead

/usr/local/go/src/os/signal/doc.go:1:1: expected 'package', found 'EOF'

Notes

  • This was working in the previous weeks.
  • Nothing changed from the code.
  • This looks like a broken upstream build or missing copy step during image creation.

Steps to Reproduce:

docker run -it golang:1.24-alpine sh
cat /usr/local/go/src/os/signal/doc.go  # outputs nothing (empty file)

Logs

  • Build Logs

Image

  • Debug Logs

Image

M2BARH avatar Jun 11 '25 08:06 M2BARH

➜  ~ podman run -it golang:1.24-alpine sh
/go # cat /usr/local/go/src/os/signal/doc.go | head
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

/*
Package signal implements access to incoming signals.

Signals are primarily used on Unix-like systems. For the use of this
package on Windows and Plan 9, see below.

/go # 

looks fine to me. anyway, we don't manage the golang: images, and can't help you out with that

fossdd avatar Jun 11 '25 13:06 fossdd