gleam-lang/gleam

Low quality error message coming from version resolution library

Open

#4,560 opened on May 5, 2025

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

Repository metrics

Stars
 (21,417 stars)
PR merge metrics
 (Avg merge 10d 19h) (69 merged PRs in 30d)

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