Skip to content
New issue

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

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

Already on GitHub? Sign in 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 · 0 comments
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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

1 participant