Commit 421ab37
authored
fix: proto descriptor collision and PyPI wheel packaging (#11)
* fix: eager proto registration to avoid descriptor pool collision
When both capiscio-sdk and capiscio-mcp are co-installed, the second
proto import crashes with DescriptorPoolConflict.
Fix:
- Eager import of mcp_pb2 in __init__.py to win the registration race
- Add try/except around AddSerializedFile with FindFileByName fallback
* fix: address review — harden proto collision except clause with message check and schema validation1 parent d3dc020 commit 421ab37
3 files changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
0 commit comments