gleam-lang/gleam

Add `path` support for git dependencies

Chiusa

#4556 aperta il 4 mag 2025

 (6 commenti) (0 reazioni) (0 assegnatari)Rust (960 fork)batch import
help wanted

Metriche repository

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

Descrizione

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" }

Guida contributor