Skip to content

Install libprotobuf-dev in the Containerfile build stage - #29

Open
0bserver07 wants to merge 1 commit into
tobi:mainfrom
0bserver07:fix/containerfile-libprotobuf-dev
Open

Install libprotobuf-dev in the Containerfile build stage#29
0bserver07 wants to merge 1 commit into
tobi:mainfrom
0bserver07:fix/containerfile-libprotobuf-dev

Conversation

@0bserver07

Copy link
Copy Markdown

Fixes #21.

The Rust stage of the Containerfile installs protobuf-compiler, which gives you protoc but not the well-known .proto files that walgit/v1/wal.proto imports (google/protobuf/timestamp.proto), so walgit-proto's build script fails and the image never builds. On Debian those files ship in libprotobuf-dev; this adds it to the same apt line.

@jeonck checked both packages in the stage's base image (rust:1.97-bookworm) in #21. I haven't rebuilt the image on this machine; happy to set up a build if you'd like to see it green first.

The Rust stage installed protobuf-compiler, which provides protoc but not
the well-known .proto files that walgit/v1/wal.proto imports, so the
walgit-proto build script failed with "google/protobuf/timestamp.proto:
File not found" and the image never built (tobi#21). On Debian those files
ship in libprotobuf-dev. jeonck checked both packages in the stage's own
base image; the image has not been rebuilt on this machine.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Containerfile build fails: protobuf-compiler does not provide the well-known .proto files (needs libprotobuf-dev)

1 participant