lycheeverse / lychee-action

Github action to check for broken links in Markdown, HTML, and text files using lychee, a fast link checker written in Rust.
https://lychee.cli.rs
Apache License 2.0
292 stars 39 forks source link

Update to v1.9: Failed to parse configuration #220

Closed ggwpez closed 5 months ago

ggwpez commented 5 months ago

(I figured it out but still open this for others to find)

Dependabot update only bumped the version from 1.8 to 1.9 here and now the config parsing fails.
The solution is https://github.com/lycheeverse/lychee/issues/1338 to convert the integer of the accept array to strings like here.

Full error was:


Error:  Error while loading config: Cannot load configuration file `.config/lychee.toml`: Failed to parse configuration file

Caused by:
    TOML parse error at line 15, column 2
       |
    15 |    200,
       |  ^^^
    invalid type: integer `200`, expected a string
mre commented 5 months ago

We will support both strings and integers again in the next version. Tracking issue: https://github.com/lycheeverse/lychee/issues/1338