Skip to content

Commit e72f3dc

Browse files
Attempt to fix release (#1368)
The v1.3.1 release failed to make it all the way through; [goreleaser was pinned to an old version of Go](https://github.com/bufbuild/protoc-gen-validate/actions/runs/22144192935/job/64016483091), and the [Dockerfile failed to build for the python release](https://github.com/bufbuild/protoc-gen-validate/actions/runs/22144192900/job/64016483115#step:5:278). From Claude: ``` ⏺ The problem is clear. The Dockerfile uses ubuntu:focal (Ubuntu 20.04), which reached End of Life on April 2, 2025. The python3.10 and python3.10-venv packages were backported to focal during its active LTS period but are no longer available in the focal apt repositories after EOL. The fix is to update the base image to ubuntu:jammy (22.04 LTS), which has Python 3.10 natively. The only other required change is openjdk-8-jdk → openjdk-11-jdk since Java 8 isn't in jammy's repos. ``` Seemed reasonable to me, and confirmed `docker build -t protoc-gen-validate:test .` works.
1 parent 39d950b commit e72f3dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fetch-depth: 0
1919
- uses: actions/setup-go@v6
2020
with:
21-
go-version: 1.21.x
21+
go-version-file: 'go.mod'
2222
- uses: goreleaser/goreleaser-action@v6
2323
with:
2424
distribution: goreleaser

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:focal
1+
FROM ubuntu:jammy
22

33
ENV DEBIAN_FRONTEND=noninteractive
44
# apt packages
@@ -17,7 +17,7 @@ ENV INSTALL_DEPS \
1717
python3-pip \
1818
apt-transport-https \
1919
curl \
20-
openjdk-8-jdk \
20+
openjdk-11-jdk \
2121
gnupg
2222

2323
RUN apt update \

0 commit comments

Comments
 (0)