Skip to content

Commit ea6f54b

Browse files
committed
build: explicitly fetch katana sub-packages at v1.6.1 to resolve transitive dependencies
1 parent 66bc60c commit ea6f54b

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ RUN go mod download
3333
COPY cmd/ ./cmd/
3434
COPY 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)
4246
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w" -o /app/autoar ./cmd/autoar

0 commit comments

Comments
 (0)