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

I have got error cannot find package "dnsgrep/DNSBinarySearch" #3

Open
Lunpopo opened this issue Feb 22, 2019 · 4 comments
Open

I have got error cannot find package "dnsgrep/DNSBinarySearch" #3

Lunpopo opened this issue Feb 22, 2019 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Lunpopo
Copy link

Lunpopo commented Feb 22, 2019

When i type command: go run experimentalServer/experimentalServer.go
I have got the error:
experimentalServer/experimentalServer.go:4:2: cannot find package "dnsgrep/DNSBinarySearch".
The same as error result to type command line: go run dnsgrep.go -f DNSBinarySearch/test_data.txt -i "amiccom.com.tw"

What should i do and how to fix it?

@erbbysam
Copy link
Owner

There is a go import path issue here.

This package is not directly go get-able. It expects to live at go/src/dnsgrep (based on the import line "dnsgrep/DNSBinarySearch").

There are 2 possible fixes --

  1. update the import path to the correct folder (something like github.com/erbbysam/DNSGrep)
  2. move the DNSGrep folder to go/src/dnsgrep

I will update the install directions and import paths to fix this.

@erbbysam erbbysam self-assigned this Mar 10, 2019
@erbbysam erbbysam added the bug Something isn't working label Mar 10, 2019
@hsluoyz
Copy link

hsluoyz commented Jul 5, 2019

Can we fix the import paths in source code to make go get work? Because go get is currently the standard way to pull a Go package.

@hsluoyz
Copy link

hsluoyz commented Aug 21, 2019

Hi @erbbysam , if you are OK with update the import path to the correct folder (something like github.com/erbbysam/DNSGrep), I can send a PR. Do you support it?

@Lunpopo
Copy link
Author

Lunpopo commented Aug 21, 2019

Dear @erbbysam:
github is terrible, just contact me by email pass about half year. but fortunately is i have resolve this issue followed your suggestion just now. Thanks a lot.

@hsluoyz, hi guy, i will show you what was resolved. first at all, following the Install section go get the following packages: and then hit cd /root/go/src/ command if your Go root path is here. And in this path hit git clone https://github.com/erbbysam/DNSGrep.git and mv DNSGrep dnsgrep. Because this program import path is go/src/dnsgrep.
Finally, run the command line: go run dnsgrep.go -f DNSBinarySearch/test_data.txt -i "amiccom.com.tw", this issue was done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants