Skip to content

Commit dc1b6ba

Browse files
committed
Final touch-ups
1 parent d90ebc7 commit dc1b6ba

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/uv-git-types/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ mod reference;
1313

1414
/// Initialize [`GitLfs`] mode from `UV_GIT_LFS` environment.
1515
pub 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"))

crates/uv-git/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ anyhow = { workspace = true }
2929
cargo-util = { workspace = true }
3030
dashmap = { workspace = true }
3131
fs-err = { workspace = true, features = ["tokio"] }
32+
owo-colors = { workspace = true }
3233
reqwest = { workspace = true, features = ["blocking"] }
3334
reqwest-middleware = { workspace = true }
3435
thiserror = { workspace = true }

crates/uv-git/src/git.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use std::sync::LazyLock;
88

99
use anyhow::{Context, Result, anyhow};
1010
use cargo_util::{ProcessBuilder, paths};
11+
use owo_colors::OwoColorize;
1112
use tracing::{debug, instrument, warn};
1213
use 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),

docs/concepts/projects/dependencies.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ dependencies = ["langchain"]
350350
langchain = { 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"]
365365
lfs-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

0 commit comments

Comments
 (0)