Skip to content

cargo build --release fails if pandoc is not installed #4

@aral

Description

@aral

Summary

On a system without pandoc installed, cargo build --release fails.

Error

…
   Compiling textwrap v0.11.0
   Compiling num-traits v0.2.12
error: failed to run custom build command for `jp v0.4.0 (/home/aral/sandbox/jp)`

Caused by:
  process didn't exit successfully: `/home/aral/sandbox/jp/target/release/build/jp-d5dfbed1a72c1cca/build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', build.rs:7:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

Workaround

Comment out the import and the contents of the main function in build.rs.

Suggested fix

Either:

  • Handle error in build.rs, or
  • Document pandoc dependency in readme

Platform

Elementary OS Hera 5.1.7 (based on Ubuntu 18.04 LTS).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions