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 · 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/[email protected]: parsing go.mod:
        module declares its path as: github.com/projectdiscovery/gcache
                but was required as: github.com/Mzack9999/gcache
        restoring github.com/Mzack9999/[email protected]
go: github.com/imdario/[email protected]: parsing go.mod:
        module declares its path as: dario.cat/mergo
                but was required as: github.com/imdario/mergo
        trying github.com/imdario/[email protected]
go: gopkg.in/alecthomas/[email protected]: 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/[email protected]
go: github.com/imdario/[email protected]: parsing go.mod:
        module declares its path as: dario.cat/mergo
                but was required as: github.com/imdario/mergo
        restoring github.com/imdario/[email protected]
go: gopkg.in/alecthomas/[email protected]: 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/[email protected]
go: gopkg.in/alecthomas/[email protected]: 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/[email protected]
go: gopkg.in/alecthomas/[email protected]: go.mod has non-....v2 module path "github.com/alecthomas/kingpin" at revision v2.3.0
        restoring gopkg.in/alecthomas/[email protected]
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/[email protected]: parsing go.mod:
        module declares its path as: github.com/projectdiscovery/gcache
                but was required as: github.com/Mzack9999/gcache
        restoring github.com/Mzack9999/[email protected]
go: github.com/imdario/[email protected]: parsing go.mod:
        module declares its path as: dario.cat/mergo
                but was required as: github.com/imdario/mergo
        trying github.com/imdario/[email protected]
go: gopkg.in/alecthomas/[email protected]: 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/[email protected]
go: github.com/imdario/[email protected]: parsing go.mod:
        module declares its path as: dario.cat/mergo
                but was required as: github.com/imdario/mergo
        restoring github.com/imdario/[email protected]
go: gopkg.in/alecthomas/[email protected]: 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/[email protected]
go: gopkg.in/alecthomas/[email protected]: 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/[email protected]
go: gopkg.in/alecthomas/[email protected]: go.mod has non-....v2 module path "github.com/alecthomas/kingpin" at revision v2.3.0
        restoring gopkg.in/alecthomas/[email protected]
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/[email protected]/pkg/server/acme/acme_certbot.go:39:3: unknown field DNSProvider in struct literal of type certmagic.DNS01Solver
../go/pkg/mod/github.com/projectdiscovery/[email protected]/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

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

2 participants