Skip to content

cargo init in the home directory can lead to confusing states #16562

@epage

Description

@epage

Problem

$ cd ~
$ cargo init

Easy to do when experimenting as a new user but could then cause problems with file discovery (e.g. #6646)

Proposed Solution

Error out

Note: we've previously decided that this was a UX command and changes in behavior that break programmatic use are not blockers.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-initS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions