Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

Docmatic fails when a dependency of the tested crate changed  #4

Description

@konstin

When changing dependencies in pyo3, docmatic will reproducibly fail to build the doc tests.

This can be easily reproduced by pinning something irrelevant (in this, log 0.4.2) to a lower version: (Requires nightly rust)

git clone https://github.com/PyO3/pyo3
cd pyo3
cargo test
sed -i -e 's/"0.4"/"=0.4.1"/' Cargo.toml
cargo test

The second test run will print a lot of errors like the following:

---- guide/src/function.md - Python_Function (line 36) stdout ----
error[E0464]: multiple matching crates for `pyo3`
 --> guide/src/function.md:40:1
  |
5 | extern crate pyo3;
  | ^^^^^^^^^^^^^^^^^^
  |
  = note: candidates:
          crate `pyo3`: /home/konsti/doc/target/debug/deps/libpyo3-3df255959ab0361f.rlib
          crate `pyo3`: /home/konsti/doc/target/debug/deps/libpyo3-1891f9f7b2b3eea4.rlib

I had this happen on multiple nightlies, so I'm pretty sure it's not a bug in nightly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions