#1718·protobuf

editions_default.binpb interferes with `go mod vendor`

Author: L3337Created Jul 31, 2026Updated Aug 25, 2026
Labelstriaged

What version of protobuf and what language are you using? Version: (e.g., v1.1.0, 89a0c16f, etc)

1.36.11 Golang

What did you do? If possible, provide a recipe for reproducing the error. A complete runnable program is good with .proto and .go source code.

When running go mod vendor, it creates a binary file called vendor/google.golang.org/protobuf/internal/editionsdefault/editions_default.binpb.

Depending on the version of protoc and/or libprotobuf or whatever other system installed tools affect this, if, for example, you develop locally on a distro like Fedora with very up-to-date software and run go mod vendor, and then try to build in a RHEL or Debian container, your application will crash because of a protobuf unmarshal error about field numbers. Running go mod vendor on the other distro will build a non-identical version of editions_default.binpb

What did you expect to see?

I would expect that running go mod vendor doesn't create binary artifacts that prevent running my code on other Linux distros. I would assume this file can and should be created at build time and not during go mod vendor.

What did you see instead?

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

My application crashes until I vendor the dependencies again to re-generate that file.

Anything else we should know about your project / environment?

Protobuf tools installed from system package managers from:

Fedora 44 (developer workstation) golang:1.26-trixie (container build environment)