Skip to content

cargo new does not detect author name and email for author field #1213

@joshtriplett

Description

@joshtriplett
/tmp$ cargo new --bin hello
/tmp$ cat hello/Cargo.toml 
[package]

name = "hello"
version = "0.0.1"
authors = ["josh"]

I have $NAME, $GIT_AUTHOR_NAME, and $GIT_COMMITTER_NAME all set, and likewise for EMAIL. git knows who I am:

/tmp/hello$ git add .
/tmp/hello$ git commit -m 'Initial commit'
[master (root-commit) 51b94a2] Initial commit
 3 files changed, 9 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 Cargo.toml
 create mode 100644 src/main.rs
/tmp/hello$ git log
commit 51b94a2fab5045e4c822684f5450f8ede817c2ad (HEAD, master)
Author: Josh Triplett <[email protected]>
Date:   Fri Jan 23 17:12:20 2015 -0800

    Initial commit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions