gleam-lang/gleam

Low quality error message coming from version resolution library

Open

#4560 aperta il 5 mag 2025

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Rust (960 fork)batch import
help wanted

Metriche repository

Star
 (21.417 star)
Metriche merge PR
 (Merge medio 10g 19h) (69 PR mergiate in 30 g)

Descrizione

gleam 1.10.0

When running gleam CLI under a proxy with a GLEAM_CACERTS_PATH wrongly set, the error is too ambiguous and is unclear that this is the problem.

What happens now:

> gleam run 
Resolving versions 
error: Dependency resolution failed

An error occurred while determining what dependency packages and versions should be downloaded. 
The error from the version resolver library was: 

Unable to determine package versions: file operation failed

Suggested:

> gleam run 
Resolving versions 
error: Dependency resolution failed

An error occurred while determining what dependency packages and versions should be downloaded. 
The error from the version resolver library was: 

Unable to determine package versions: certificate error
Hint: are you sure the certificates are correct?

or something along those lines

Guida contributor