gleam-lang/gleam

Improve error message for a file being too large when publishing to Hex

开放

#5,744 创建于 2026年5月23日

 (1 条评论) (0 个反应) (0 位负责人)Rust (960 个派生)batch import
good first issuehelp wanted

仓库指标

星标
 (21,417 个星标)
PR 合并指标
 (平均合并 10天 19小时) (30 天内合并 69 个 PR)

描述

Similar to https://github.com/gleam-lang/gleam/issues/5708 which is for making api_revert_package_response error msg nicer

api_publish_package_response currently dumps the raw json eg

hexpm1

assuming https://github.com/gleam-lang/gleam/issues/5708 gets https://github.com/gleam-lang/gleam/pull/5728 and adds hexpm::ApiError::ValidationError that same type could be used for the api_publish_package_response case StatusCode::UNPROCESSABLE_ENTITY https://github.com/gleam-lang/gleam/blob/d09b84d289458b39caa304496a02e7412643bcf0/hexpm/src/lib.rs#L542

贡献者指南