File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ mod reference;
1313
1414/// Initialize [`GitLfs`] mode from `UV_GIT_LFS` environment.
1515pub static UV_GIT_LFS : LazyLock < GitLfs > = LazyLock :: new ( || {
16+ // TODO(konsti): Parse this in `EnvironmentOptions`.
1617 if std:: env:: var_os ( EnvVars :: UV_GIT_LFS )
1718 . and_then ( |v| v. to_str ( ) . map ( str:: to_lowercase) )
1819 . is_some_and ( |v| matches ! ( v. as_str( ) , "y" | "yes" | "t" | "true" | "on" | "1" ) )
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ anyhow = { workspace = true }
2929cargo-util = { workspace = true }
3030dashmap = { workspace = true }
3131fs-err = { workspace = true , features = [" tokio" ] }
32+ owo-colors = { workspace = true }
3233reqwest = { workspace = true , features = [" blocking" ] }
3334reqwest-middleware = { workspace = true }
3435thiserror = { workspace = true }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use std::sync::LazyLock;
88
99use anyhow:: { Context , Result , anyhow} ;
1010use cargo_util:: { ProcessBuilder , paths} ;
11+ use owo_colors:: OwoColorize ;
1112use tracing:: { debug, instrument, warn} ;
1213use url:: Url ;
1314
@@ -27,7 +28,7 @@ pub enum GitError {
2728 GitNotFound ,
2829 #[ error( "Git LFS extension not found. Ensure that Git LFS is installed and available." ) ]
2930 GitLfsNotFound ,
30- #[ error( "Is Git LFS configured? You may need to run ` git lfs install`." ) ]
31+ #[ error( "Is Git LFS configured? Run `{}` to initialize Git LFS." , " git lfs install" . green ( ) ) ]
3132 GitLfsNotConfigured ,
3233 #[ error( transparent) ]
3334 Other ( #[ from] which:: Error ) ,
Original file line number Diff line number Diff line change @@ -350,8 +350,8 @@ dependencies = ["langchain"]
350350langchain = { git = " https://github.com/langchain-ai/langchain" , subdirectory = " libs/langchain" }
351351```
352352
353- Support for [ Git LFS] ( https://git-lfs.com ) is also configurable per source. Git LFS objects will not
354- be fetched by default unless otherwise specified .
353+ Support for [ Git LFS] ( https://git-lfs.com ) is also configurable per source. By default, Git LFS
354+ objects will not be fetched .
355355
356356``` console
357357$ uv add --lfs git+https://github.com/astral-sh/lfs-cowsay
@@ -365,9 +365,9 @@ dependencies = ["lfs-cowsay"]
365365lfs-cowsay = { git = " https://github.com/astral-sh/lfs-cowsay" , lfs = true }
366366```
367367
368- - When ` lfs = true ` , uv will always fetch LFS objects for this git source.
369- - When ` lfs = false ` , uv will never fetch LFS objects for this git source.
370- - When omitted, ` UV_GIT_LFS ` environment variable takes precedence for all git sources without an
368+ - When ` lfs = true ` , uv will always fetch LFS objects for this Git source.
369+ - When ` lfs = false ` , uv will never fetch LFS objects for this Git source.
370+ - When omitted, the ` UV_GIT_LFS ` environment variable is used for all Git sources without an
371371 explicit ` lfs ` configuration.
372372
373373!!! important
You can’t perform that action at this time.
0 commit comments