Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
N/A
Description
Running the "Build and Deploy Hugo Site" GitHub action to sync the repo to the website fails with "Process completed with exit code 2"
Vlad has investigated:
—
Status: Downloaded newer image for lycheeverse/lychee:latest
https://github.com/MariaDB/mariadb-for-universities/actions/runs/21400495770/job/61609918578#step:5:25error: invalid value 'html_site' for '--base <BASE>': Error with base dir html_site : Base must either be a URL (with scheme) or an absolute local path. See --help for more information. If you want to resolve root-relative links in local files, also see --root-dir.
this is the error for the build run and i think it's because the workflow is configured to download the latest docker image of lychee
the full command for the workflow on that step is:
run: |
docker run --rm -t -v $(pwd):/src -w /src lycheeverse/lychee:latest \
--base html_site \
--exclude "(github|gitlab|www.linkedin).com" \
--exclude "^javascript:" \
-n -v html_site/*/.html
but --base is now deprecated
according to the arguments listed here: https://github.com/lycheeverse/lychee#commandline-parameters
so the command should be updated to use --base-url with the correct address or the docker image should be restricted to a version which accepted that argument