gleam-lang/gleam

Add `path` support for git dependencies

Closed

#4,556 opened on May 4, 2025

 (6 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

It seems to be currently impossible to reference a package in gleam.toml which lives in a subdirectory of a git repository. We already support specifying a path in the repository section for documentation purposes, so it would seem logical to be able to do the same when depending on a package in git.

Example of how it could look (this package can't currently be referenced through git):

sketch = { git = "https://github.com/ghivert/sketch.git", ref = "main", path = "sketch" }

Contributor guide