Repository navigation
Update publish and rest API - #240
Conversation
thelovekesh
commented
Jun 3, 2026
- Update publish command to use Length-Prefixed Framing to send manifest in body itself instead of headers.
- Bump the readme limit to 100KB
- Update host and path handling in the rest client
There was a problem hiding this comment.
Code Review
This pull request refactors the HTTP and REST client implementation, including base URL normalization, redirect handling, and payload streaming for package publishing. It also introduces response size limits to prevent out-of-memory issues. However, the reviewer identified critical issues: rejecting absolute URLs in the REST client breaks DownloadTarball when called with CDNs or storage buckets, and shallow copying http.Request in both the cache transport and header round-tripper can lead to race conditions due to shared pointer fields. It is recommended to restore req.Clone for safe request copying.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.