gleam-lang/gleam

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

オープン

#5,744 opened on 2026/05/23

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (960 件のフォーク)batch import
good first issuehelp wanted

Repository metrics

Stars
 (21,417 個のスター)
PR merge metrics
 (平均マージ 10d 19h) (30d で 69 merged PRs)

説明

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

コントリビューターガイド