File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,10 +33,14 @@ RUN go mod download
3333COPY cmd/ ./cmd/
3434COPY internal/ ./internal/
3535
36- # Fetch katana (new direct dependency) and add its go.sum entries.
37- # Avoid `go mod tidy` here — it would upgrade unrelated indirect deps
38- # (e.g. gitlab SDK) and break nuclei v3.7.1 compilation.
39- RUN go get github.com/projectdiscovery/katana@latest
36+ # Fetch katana and all its sub-packages into go.sum.
37+ # go get on the top-level module alone doesn't resolve transitive deps
38+ # of sub-packages — we must fetch each used sub-package explicitly.
39+ RUN go get github.com/projectdiscovery/katana@v1.6.1 && \
40+ go get github.com/projectdiscovery/katana/pkg/utils@v1.6.1 && \
41+ go get github.com/projectdiscovery/katana/pkg/output@v1.6.1 && \
42+ go get github.com/projectdiscovery/katana/pkg/types@v1.6.1 && \
43+ go get github.com/projectdiscovery/katana/pkg/engine/standard@v1.6.1
4044
4145# Build main autoar binary from cmd/autoar (CGO enabled for naabu/libpcap)
4246RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w" -o /app/autoar ./cmd/autoar
You can’t perform that action at this time.
0 commit comments