astral-sh/uv · error
No author information found
Error message
No author information found
What it means
Error "No author information found" thrown in astral-sh/uv.
Source
Thrown at crates/uv/src/commands/project/init.rs:1324
let output = git
.build_command()
.arg("config")
.arg("--get")
.arg("user.email")
.current_dir(path)
.stdout(Stdio::piped())
.stderr(Stdio::null())
.output()?;
if output.status.success() {
email = Some(String::from_utf8_lossy(&output.stdout).trim().to_string());
}
let author = match (name, email) {
(Some(name), Some(email)) => Author::NameEmail { name, email },
(Some(name), None) => Author::Name(name),
(None, Some(email)) => Author::Email(email),
(None, None) => anyhow::bail!("No author information found"),
};
Ok(author)
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn author_to_toml_string_handles_inline_quotes() {
let author = Author::NameEmail {
name: "Tony \"Iron Man\" Stark".to_string(),
email: "ironman@example.com".to_string(),
};
assert_eq!(
author.to_toml_string(),View on GitHub (pinned to f1a42680ff)
When it happens
Trigger: Thrown at crates/uv/src/commands/project/init.rs:1324 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of astral-sh/uv@f1a42680ff (2026-08-16).
Data as JSON: /api/errors/0c986f93b9e0e61c.
Report an issue: GitHub.