gleam-lang/gleam

Low quality error message coming from version resolution library

Open

#4560 opened on May 5, 2025

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Rust (21,417 stars) (960 forks)batch import
help wanted

Description

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

Contributor guide