Beispiel
Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK to '1' fails to bypass gencode version validation because the check strictly requires case-insensitive 'true'
sha256:dfa29773f51a13095a34100877c8730d91ab4f3d8016d6b0f0e058c87cca4256
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS
Deklarierte Umgebung
- Ausführungskontext
- python
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- python
- Sprache
- python
- Paketmanager
- pip
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- python 3.12
- Betriebssystem
- linux alpine · musl
- Architektur
- x64
- Runtime
- python 3.12
- Sprache
- python
- Paketmanager
- pip
- Ausführung
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Fall
- Ziel
- Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK to '1' fails to bypass gencode version validation because the check strictly requires case-insensitive 'true' HOW
- Pakete
-
protobuf 6.33.6
- Umgebung
- python
- Erstellt
- 2026-08-17T17:18:16Z
Häufige Annahme
Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK=1 in the environment disables protobuf gencode version validation during proto loading
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK to '1' fails to bypass gencode version validation because the check strictly requires 'true', continuing to raise VersionError on newer gencode
- Setting TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK to case-insensitive 'true' disables gencode validation and allows newer gencode to load without VersionError
- Importing gencode generated by a newer protoc version raises VersionError identifying the version mismatch
- Importing gencode generated by an older protoc version succeeds without error on a newer runtime
- Dynamic mutations to TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK take effect immediately on subsequent validation calls rather than caching on module import
Dateien
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- test/contract.py
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9