gleam-lang/gleam

Add `path` support for git dependencies

Open

#4556 opened on May 4, 2025

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

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