mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-03-12 21:23:05 -07:00
fix: Docker build now compiles submodules correctly
- Remove .gitmodules from .dockerignore so the build loop can discover which directories to compile - Add git to Dockerfile apt installs (needed for git config --file parsing) - Gate git submodule update --init on .git presence, not .gitmodules; the compile loop still runs in Docker since .gitmodules is now present - hashcat skipped in Docker build loop since system hashcat is in PATH Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
.git
|
.git
|
||||||
.gitmodules
|
|
||||||
.gitignore
|
.gitignore
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ RUN apt-get update \
|
|||||||
build-essential \
|
build-essential \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
|
git \
|
||||||
gzip \
|
gzip \
|
||||||
hashcat \
|
hashcat \
|
||||||
ocl-icd-libopencl1 \
|
ocl-icd-libopencl1 \
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -5,8 +5,8 @@ hashcat-utils: submodules
|
|||||||
$(MAKE) -C hashcat-utils
|
$(MAKE) -C hashcat-utils
|
||||||
|
|
||||||
submodules:
|
submodules:
|
||||||
@# Initialize submodules when present
|
@# Initialize submodules only when inside a git repo (not in Docker/CI copies)
|
||||||
@if [ -f .gitmodules ] && command -v git >/dev/null 2>&1; then \
|
@if [ -d .git ] && [ -f .gitmodules ] && command -v git >/dev/null 2>&1; then \
|
||||||
git submodule update --init --recursive; \
|
git submodule update --init --recursive; \
|
||||||
fi; \
|
fi; \
|
||||||
$(MAKE) submodules-pre; \
|
$(MAKE) submodules-pre; \
|
||||||
|
|||||||
Reference in New Issue
Block a user