Skip to content

mdbook test ignores the directory argument when the -L flag is passed before it #1958

@cvybhu

Description

@cvybhu

Our mdbook workflow in https://github.com/scylladb/scylla-rust-driver suddenly started failing.

The failing command was:

mdbook test -L target/debug/deps docs

It started complaining that it can't find SUMMARY.md in the directory <repository>/src
The book is in the directory <repository>/docs and that's why we pass the docs argument to guide it to the right place.

Swapping the order of the arguments fixes the problem:

mdbook test docs -L target/debug/deps

This looks like a bug in argument parsing.

Refs: scylladb/scylla-rust-driver#616

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions