google / comprehensive-rust

This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust.

Home Page:https://google.github.io/comprehensive-rust/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panic during translations rendering

henrif75 opened this issue · comments

Building translation step in actions is failing for all .po files

Run .github/workflows/build.sh es book/comprehensive-rust-es
  .github/workflows/build.sh es book/comprehensive-rust-es
  shell: /usr/bin/bash -e {0}
  env:
    CARGO_TERM_COLOR: always
    CACHE_ON_FAILURE: false
    CARGO_INCREMENTAL: 0
Building es translation as of [2](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:2)024-01-25T15:0[3](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:3):2[4](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:4)-08:00
  2024-03-0[5](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:5) 20:3[6](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:6):42 [INFO] (mdbook::book): Book building has started
  2024-03-05 20:36:44 [INFO] (mdbook::book): Running the exerciser backend
  2024-03-05 20:36:44 [INFO] (mdbook::renderer): Invoking the "exerciser" renderer
  2024-03-05 20:36:45 [INFO] (mdbook::book): Running the html backend
  2024-03-05 20:36:4[8](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:9) [INFO] (mdbook::book): Running the pandoc backend
  2024-03-05 20:36:48 [INFO] (mdbook::renderer): Invoking the "pandoc" renderer
  Unable to run `pandoc -v`: No such file or directory (os error 2)
  Error: -05 20:36:48 [ERROR] (mdbook::renderer): Renderer exited with non-zero return code.
  Error: -05 20:36:48 [ERROR] (mdbook::utils): Error: Rendering failed
  Error: -05 20:36:48 [ERROR] (mdbook::utils): 	Caused By: The "pandoc" renderer failed
  Error: Process completed with exit code [10]

I had a similar issue, but assumed it was because I didn't have pandoc (or the right version of it..) installed.

c509dbd should have addressed this, I think? @mgeisler?

Thanks @djmitche
That might have been a transient error, it's working fine in my last PR (#1879)
I'll keep this open a little and close later today.

Can't reproduce it anymore.

I had a similar issue, but assumed it was because I didn't have pandoc (or the right version of it..) installed.

c509dbd should have addressed this, I think? @mgeisler?

Hmm... strange — the change in #1713 was not trying to fix this, it was just trying to simplify build.sh and also ensure that we always test the PDF generation for all languages for all PRs.

Cc @max-heller in case you have any ideas? The error message above says that pandoc wasn't found, so perhaps the curl command that installs it simply failed?

Cc @max-heller in case you have any ideas? The error message above says that pandoc wasn't found, so perhaps the curl command that installs it simply failed?

Yep, looks to be an issue of pandoc not being found in PATH, so either the download failed or adding it to PATH failed