Skip to content

Print a clear warning when including untracked files in package #1597

@bluss

Description

@bluss

Print a clear warning when including untracked files in package.

Admonition the user to track or ignore these files in git.

See issue #1584.

Cargo should help the author for two reasons:

  • If the file is untracked, it might be lost and an important part of a working package is lost
  • It might alert the author to junk. It happens easily, perf.data, files you saved to test, logs

If it's about empty directories, tell the crate author to use the standard workaround (.gitignore inside to make it non-empty).

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