Skip to content

Could not read file ... fails publish after a long compile time #10773

@m-kuzmin

Description

@m-kuzmin

Problem

When doing cargo publish the first thing that happens is compiling all the dependencies, but if there is a missing file then the command will fail after so much work was done.

Proposed Solution

It would be nice to have simple checks like missing files be done before compiling dependencies.

Notes

error: failed to read `readme` file for package `ani-tui v0.2.0 (/home/mkr/rust/ani-tui)`

Caused by:
  failed to read `/home/mkr/rust/ani-tui/README.md`

Caused by:
  No such file or directory (os error 2)

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-publishS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions