Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cargo publish error due to examples without path #444

Merged
merged 1 commit into from Feb 27, 2022

Commits on Feb 27, 2022

  1. Fix cargo publish error due to examples without path

    Without this, we get a strange error:
    
    ```
    % cargo publish --dry-run
        Updating crates.io index
       Packaging textwrap v0.15.0 (/home/mg/src/textwrap)
       Verifying textwrap v0.15.0 (/home/mg/src/textwrap)
    error: failed to verify package tarball
    
    Caused by:
      failed to parse manifest at `/home/mg/src/textwrap/target/package/textwrap-0.15.0/Cargo.toml`
    
    Caused by:
      can't find `hyphenation` example at `examples/hyphenation.rs` or
      `examples/hyphenation/main.rs`. Please specify example.path if you
      want to use a non-default path.
    ```
    
    This happens even though the file is there:
    
    ```
    % ls examples/hyphenation.rs
    examples/hyphenation.rs
    ```
    
    Specifying an explicit path helps and should let the release go
    through.
    mgeisler committed Feb 27, 2022
    Copy the full SHA
    07c6cd8 View commit details
    Browse the repository at this point in the history