Skip to content

ERROR RUN go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest #27

@Takaeda4413

Description

@Takaeda4413

While trying to docker install Neurosploit i am encountering this error
"go: github.com/projectdiscovery/httpx/cmd/httpx@latest: github.com/projectdiscovery/[email protected] requires go >= 1.25.7 (running go 1.24.13; GOTOOLCHAIN=local)"

Here is the currently go env settings for me
AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE='auto'
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/home/kali/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/home/kali/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2034602429=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD=''
GOMODCACHE='/home/kali/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/kali/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/kali/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.25.7'
GOWORK=''
PKG_CONFIG='pkg-config'

Now how to switch the gotoolchains from the version detected which is 1.24.13 to the required version of 1.25.7 I also read that the version 1.24.13 is the secured version but the installation requires the 1.25 one. and apparently I cannot switch the gotoolchain version using both "sudo go mod edit -toolchain=go1.25.7 and go env -w GOTOOLCHAIN=go1.25.7+auto either. While using the command "sudo ./scripts/build-kali.sh" it still sees that I am using the 1.24.13 version. This thing is driving me nuts. any help will do, Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions