Docker build fails when zip of repo was used as opposed to git clone #7420
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
Hi,
The dockerfile contains:
The line
&& mkdir .git/objects \
fails when this repository was obtained using the download zip function in github. As in that case the.git
folder won't exist thus mkdir fails as it would need to create 2 directories.There are 2 potential fixes here.
&& mkdir -p .git/objects \
(note the-p
) to make it work as intended.I locally changed this to
-p
which made the build work.Cheers,
Mark
The text was updated successfully, but these errors were encountered: