projectdiscovery / dnsx

dnsx is a fast and multi-purpose DNS toolkit allow to run multiple DNS queries of your choice with a list of user-supplied resolvers.
https://docs.projectdiscovery.io/tools/dnsx
MIT License
2.05k stars 231 forks source link

Installation Issue with dnsx v1.2.0 Using go install #588

Closed hahwul closed 3 months ago

hahwul commented 3 months ago

Hi, I've encountered an issue while attempting to install dnsx version 1.2.0 using Go.

When running the command to install dnsx using Go, I encounter an error message that suggests there's a problem with the go.mod file of the dnsx module, specifically regarding the use of replace directives.

dnsx version:

v1.2.0

Current Behavior:

$ go install github.com/projectdiscovery/dnsx/cmd/dnsx@latest
go: github.com/projectdiscovery/dnsx/cmd/dnsx@latest (in github.com/projectdiscovery/dnsx@v1.2.0):
    The go.mod file for the module providing named packages contains one or
    more replace directives. It must not contain directives that would cause
    it to be interpreted differently than if it were the main module.

Expected Behavior:

The expected behavior is for dnsx to be installed successfully without encountering errors related to the module's go.mod file.

Steps To Reproduce:

  1. Install dnsx with go install
    go install github.com/projectdiscovery/dnsx/cmd/dnsx@latest
ehsandeep commented 3 months ago

@hahwul fixed in https://github.com/projectdiscovery/dnsx/releases/tag/v1.2.1