Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] Running go get -u github.com/projectdiscovery/nuclei/v3/lib fails #5932

Open
1 task done
kiokuless opened this issue Dec 20, 2024 · 1 comment
Open
1 task done
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@kiokuless
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues.

Current Behavior

Initialize with a new go project, then Running go get -u github.com/projectdiscovery/nuclei/v3/lib fails.

$ mkdir new-project && cd new-project
$ go mod init new-project
$ go get -u github.com/projectdiscovery/nuclei/v3/lib

go: downloading github.com/projectdiscovery/nuclei v1.1.7
go: downloading github.com/projectdiscovery/nuclei/v3 v3.3.7
go: downloading github.com/projectdiscovery/ratelimit v0.0.64
go: downloading github.com/projectdiscovery/utils v0.3.0
go: downloading github.com/projectdiscovery/hmap v0.0.69
-snip-
go: downloading golang.org/x/arch v0.12.0
go: github.com/Mzack9999/gcache@v0.0.0-20241015120333-12546c6e3f4c: parsing go.mod:
        module declares its path as: github.com/projectdiscovery/gcache
                but was required as: github.com/Mzack9999/gcache
        restoring github.com/Mzack9999/gcache@v0.0.0-20230410081825-519e28eab057
go: github.com/imdario/mergo@v1.0.1: parsing go.mod:
        module declares its path as: dario.cat/mergo
                but was required as: github.com/imdario/mergo
        trying github.com/imdario/mergo@v1.0.0
go: gopkg.in/alecthomas/kingpin.v2@v2.4.0: parsing go.mod:
        module declares its path as: github.com/alecthomas/kingpin/v2
                but was required as: gopkg.in/alecthomas/kingpin.v2
        trying gopkg.in/alecthomas/kingpin.v2@v2.3.2
go: github.com/imdario/mergo@v1.0.0: parsing go.mod:
        module declares its path as: dario.cat/mergo
                but was required as: github.com/imdario/mergo
        restoring github.com/imdario/mergo@v0.3.16
go: gopkg.in/alecthomas/kingpin.v2@v2.3.2: parsing go.mod:
        module declares its path as: github.com/alecthomas/kingpin/v2
                but was required as: gopkg.in/alecthomas/kingpin.v2
        trying gopkg.in/alecthomas/kingpin.v2@v2.3.1
go: gopkg.in/alecthomas/kingpin.v2@v2.3.1: parsing go.mod:
        module declares its path as: github.com/alecthomas/kingpin/v2
                but was required as: gopkg.in/alecthomas/kingpin.v2
        trying gopkg.in/alecthomas/kingpin.v2@v2.3.0
go: gopkg.in/alecthomas/kingpin.v2@v2.3.0: go.mod has non-....v2 module path "github.com/alecthomas/kingpin" at revision v2.3.0
        restoring gopkg.in/alecthomas/kingpin.v2@v2.2.6
go: downloading github.com/weppos/publicsuffix-go v0.40.3-0.20241218111332-1518a6f1cb34
go: downloading filippo.io/edwards25519 v1.1.0
go: downloading github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3
go: downloading github.com/caddyserver/zerossl v0.1.3
go: downloading github.com/mholt/acmez/v2 v2.0.3
go: downloading github.com/cloudwego/base64x v0.1.4
go: downloading github.com/cloudwego/iasm v0.2.0
go: github.com/Mzack9999/gcache@v0.0.0-20241015120333-12546c6e3f4c: parsing go.mod:
        module declares its path as: github.com/projectdiscovery/gcache
                but was required as: github.com/Mzack9999/gcache
        restoring github.com/Mzack9999/gcache@v0.0.0-20230410081825-519e28eab057
go: github.com/imdario/mergo@v1.0.1: parsing go.mod:
        module declares its path as: dario.cat/mergo
                but was required as: github.com/imdario/mergo
        trying github.com/imdario/mergo@v1.0.0
go: gopkg.in/alecthomas/kingpin.v2@v2.4.0: parsing go.mod:
        module declares its path as: github.com/alecthomas/kingpin/v2
                but was required as: gopkg.in/alecthomas/kingpin.v2
        trying gopkg.in/alecthomas/kingpin.v2@v2.3.2
go: github.com/imdario/mergo@v1.0.0: parsing go.mod:
        module declares its path as: dario.cat/mergo
                but was required as: github.com/imdario/mergo
        restoring github.com/imdario/mergo@v0.3.16
go: gopkg.in/alecthomas/kingpin.v2@v2.3.2: parsing go.mod:
        module declares its path as: github.com/alecthomas/kingpin/v2
                but was required as: gopkg.in/alecthomas/kingpin.v2
        trying gopkg.in/alecthomas/kingpin.v2@v2.3.1
go: gopkg.in/alecthomas/kingpin.v2@v2.3.1: parsing go.mod:
        module declares its path as: github.com/alecthomas/kingpin/v2
                but was required as: gopkg.in/alecthomas/kingpin.v2
        trying gopkg.in/alecthomas/kingpin.v2@v2.3.0
go: gopkg.in/alecthomas/kingpin.v2@v2.3.0: go.mod has non-....v2 module path "github.com/alecthomas/kingpin" at revision v2.3.0
        restoring gopkg.in/alecthomas/kingpin.v2@v2.2.6
go: added aead.dev/minisign v0.3.0
go: added code.gitea.io/sdk/gitea v0.19.0
go: added dario.cat/mergo v1.0.1
go: added filippo.io/edwards25519 v1.1.0
-snip-

$ go run main.go 
# github.com/projectdiscovery/interactsh/pkg/server/acme
../go/pkg/mod/github.com/projectdiscovery/interactsh@v1.2.2/pkg/server/acme/acme_certbot.go:39:3: unknown field DNSProvider in struct literal of type certmagic.DNS01Solver
../go/pkg/mod/github.com/projectdiscovery/interactsh@v1.2.2/pkg/server/acme/acme_certbot.go:40:3: unknown field Resolvers in struct literal of type certmagic.DNS01Solver

Expected Behavior

No error happened.

Steps To Reproduce

  1. $ mkdir new-project && cd new-project
  2. $ go mod init new-project
  3. $ go get -u github.com/projectdiscovery/nuclei/v3/lib

Relevant log output

Environment

I confirmed two environments.

### macOS
- OS: macOS Sonoma v14.4.1
- Nuclei:

nuclei -version
[INF] Nuclei Engine Version: v3.3.7
[INF] Nuclei Config Directory: /Users/kiokuless/Library/Application Support/nuclei
[INF] Nuclei Cache Directory: /Users/kiokuless/Library/Caches/nuclei
[INF] PDCP Directory: /Users/kiokuless/.pdcp

- Go: `go version go1.23.2 darwin/arm64`


### Arch Linux
- OS: arch
- Nuclei: `$ nuclei -version`

[INF] Nuclei Engine Version: v3.3.7
[INF] Nuclei Config Directory: /Users/kiokuless/.config/nuclei
[INF] Nuclei Cache Directory: /Users/kiokuless/.cache/nuclei
[INF] PDCP Directory: /Users/kiokuless/.pdcp

- Go: `go version go1.23.4 linux/amd64`

Anything else?

No response

@kiokuless kiokuless added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Dec 20, 2024
@jeyaseelans86
Copy link

As a temp workaround you can edit the go.mod file

to

github.com/caddyserver/certmagic v0.19.2

and run

go get -u && go mod tidy

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

2 participants