Git executable not found in $PATH
My builds with hugo_extended:latest
is failing with error message
$ hugo
Building sites … ERROR 2019/06/28 11:13:58 Failed to read Git log: Git executable not found in $PATH
Total in 946 ms
Error: Error building site: logged 1 error(s)
I was able to successfully build yesterday.
- Passing build yesterday: https://gitlab.com/thomasjsn/uctrl-dev/-/jobs/241237025
- Failing build today: https://gitlab.com/thomasjsn/uctrl-dev/-/jobs/241929967
- My
.gitlab-ci.yml
: https://gitlab.com/thomasjsn/uctrl-dev/blob/master/.gitlab-ci.yml
Possibly caused by image rebuilds in #31 (closed)? !86 (merged) removed installation of git package.
ARG HUGO_APK="ca-certificates openssl git"
apk add --update --no-cache ${HUGO_APK} && \
Adding this to my .gitlab-ci.yml
solved the problem:
before_script:
- apk add --update --no-cache git
Edited by Thomas Jensen