trimstray / htrace.sh

My simple Swiss Army knife for http/https troubleshooting and profiling.
GNU General Public License v3.0
3.75k stars 233 forks source link

Unable to build Docker image: cannot find package "github.com/projectdiscovery/subfinder/cmd/subfinder" #94

Closed ddziaduch closed 3 years ago

ddziaduch commented 3 years ago

MacOS 10.15.6 Docker Desktop v 2.4.0.0

➜  htrace.sh git:(master) ✗ build/build.sh
+++ dirname build/build.sh
++ cd build/..
++ pwd
+ ROOT_DIR=/Volumes/projects/github/htrace.sh
+ docker build -t htrace.sh -f build/Dockerfile /Volumes/projects/github/htrace.sh
Sending build context to Docker daemon  8.211MB
Step 1/35 : FROM golang:alpine AS golang
 ---> b3bc898ad092
Step 2/35 : RUN apk add --no-cache git
 ---> Using cache
 ---> 62748406ef26
Step 3/35 : RUN go get github.com/ssllabs/ssllabs-scan
 ---> Using cache
 ---> 6fc956831704
Step 4/35 : RUN go get github.com/maxmind/geoipupdate/cmd/geoipupdate
 ---> Using cache
 ---> de3c6a51a849
Step 5/35 : RUN go get github.com/projectdiscovery/subfinder/cmd/subfinder
 ---> Running in af580b820fd2
cannot find package "github.com/projectdiscovery/subfinder/cmd/subfinder" in any of:
    /usr/local/go/src/github.com/projectdiscovery/subfinder/cmd/subfinder (from $GOROOT)
    /go/src/github.com/projectdiscovery/subfinder/cmd/subfinder (from $GOPATH)
The command '/bin/sh -c go get github.com/projectdiscovery/subfinder/cmd/subfinder' returned a non-zero code: 1
fartbagxp commented 3 years ago

It seems like subfinder changed the path from subfinder/cmd/subfinder to subfinder/v2/cmd/subfinder in recent updates.

The following change will make it work.

-RUN go get github.com/projectdiscovery/subfinder/cmd/subfinder
+RUN go get github.com/projectdiscovery/subfinder/v2/cmd/subfinder