Xe / x

Various tools, trinkets and experiments
Creative Commons Zero v1.0 Universal
171 stars 10 forks source link

cannot install project #18

Closed Shagon94 closed 5 years ago

Shagon94 commented 5 years ago
$ go get -u -v github.com/Xe/x/cmd/dnsd@latest
go: cannot use path@version syntax in GOPATH mode
$ go get -u -v github.com/Xe/x/cmd/dnsdgithub.com/Xe/x (download)
github.com/miekg/dns (download)
# cd /Users/user/go/src/github.com/miekg/dns; git pull --ff-only
error: cannot open .git/FETCH_HEAD: Permission denied
package github.com/miekg/dns: exit status 1
github.com/mmikulicic/stringlist (download)
Fetching https://within.website/x/internal?go-get=1
Parsing meta tags from https://within.website/x/internal?go-get=1 (status code 200)
get "within.website/x/internal": found meta tag get.metaImport{Prefix:"within.website/x", VCS:"git", RepoRoot:"https://github.com/Xe/x"} at https://within.website/x/internal?go-get=1
get "within.website/x/internal": verifying non-authoritative meta tag
Fetching https://within.website/x?go-get=1
Parsing meta tags from https://within.website/x?go-get=1 (status code 200)
within.website/x (download)
github.com/joho/godotenv (download)
Fetching https://go4.org/legal?go-get=1
Parsing meta tags from https://go4.org/legal?go-get=1 (status code 200)
get "go4.org/legal": found meta tag get.metaImport{Prefix:"go4.org", VCS:"git", RepoRoot:"https://github.com/go4org/go4"} at https://go4.org/legal?go-get=1
get "go4.org/legal": verifying non-authoritative meta tag
Fetching https://go4.org?go-get=1
Parsing meta tags from https://go4.org?go-get=1 (status code 200)
go4.org (download)
Fetching https://within.website/confyg/flagconfyg?go-get=1
Parsing meta tags from https://within.website/confyg/flagconfyg?go-get=1 (status code 200)
get "within.website/confyg/flagconfyg": found meta tag get.metaImport{Prefix:"within.website/confyg", VCS:"git", RepoRoot:"https://github.com/Xe/confyg"} at https://within.website/confyg/flagconfyg?go-get=1
get "within.website/confyg/flagconfyg": verifying non-authoritative meta tag
Fetching https://within.website/confyg?go-get=1
Parsing meta tags from https://within.website/confyg?go-get=1 (status code 200)
within.website/confyg (download)
Fetching https://within.website/confyg?go-get=1
Parsing meta tags from https://within.website/confyg?go-get=1 (status code 200)
get "within.website/confyg": found meta tag get.metaImport{Prefix:"within.website/confyg", VCS:"git", RepoRoot:"https://github.com/Xe/confyg"} at https://within.website/confyg?go-get=1
Fetching https://within.website/ln?go-get=1
Parsing meta tags from https://within.website/ln?go-get=1 (status code 200)
get "within.website/ln": found meta tag get.metaImport{Prefix:"within.website/ln", VCS:"git", RepoRoot:"https://github.com/Xe/ln"} at https://within.website/ln?go-get=1
within.website/ln (download)
github.com/pkg/errors (download)
Fetching https://within.website/ln/opname?go-get=1
Parsing meta tags from https://within.website/ln/opname?go-get=1 (status code 200)
get "within.website/ln/opname": found meta tag get.metaImport{Prefix:"within.website/ln", VCS:"git", RepoRoot:"https://github.com/Xe/ln"} at https://within.website/ln/opname?go-get=1
get "within.website/ln/opname": verifying non-authoritative meta tag
Fetching https://within.website/ln?go-get=1
Parsing meta tags from https://within.website/ln?go-get=1 (status code 200)
Fetching https://within.website/x/cmd/license/licenses?go-get=1
Parsing meta tags from https://within.website/x/cmd/license/licenses?go-get=1 (status code 200)
get "within.website/x/cmd/license/licenses": found meta tag get.metaImport{Prefix:"within.website/x", VCS:"git", RepoRoot:"https://github.com/Xe/x"} at https://within.website/x/cmd/license/licenses?go-get=1
get "within.website/x/cmd/license/licenses": verifying non-authoritative meta tag
Fetching https://within.website/x/internal/flagenv?go-get=1
Parsing meta tags from https://within.website/x/internal/flagenv?go-get=1 (status code 200)
get "within.website/x/internal/flagenv": found meta tag get.metaImport{Prefix:"within.website/x", VCS:"git", RepoRoot:"https://github.com/Xe/x"} at https://within.website/x/internal/flagenv?go-get=1
get "within.website/x/internal/flagenv": verifying non-authoritative meta tag
Fetching https://within.website/x/internal/manpage?go-get=1
Parsing meta tags from https://within.website/x/internal/manpage?go-get=1 (status code 200)
get "within.website/x/internal/manpage": found meta tag get.metaImport{Prefix:"within.website/x", VCS:"git", RepoRoot:"https://github.com/Xe/x"} at https://within.website/x/internal/manpage?go-get=1
get "within.website/x/internal/manpage": verifying non-authoritative meta tag
Fetching https://within.website/x/web?go-get=1
Parsing meta tags from https://within.website/x/web?go-get=1 (status code 200)
get "within.website/x/web": found meta tag get.metaImport{Prefix:"within.website/x", VCS:"git", RepoRoot:"https://github.com/Xe/x"} at https://within.website/x/web?go-get=1
get "within.website/x/web": verifying non-authoritative meta tag
github.com/celrenheit/sandflake (download)

$ GOBIN=$(pwd) go install github.com/Xe/x/cmd/dnsd
../../../../go/src/github.com/Xe/x/cmd/dnsd/main.go:17:2: use of internal package within.website/x/internal not allowed

I'm guessing its because of the internal package?

Xe commented 5 years ago

Try this:

$ export GO111MODULE=on
$ go get -v within.website/x/cmd/dnsd
Shagon94 commented 5 years ago

; <<>> DiG 9.10.6 <<>> @localhost youtube.com
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62794
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;youtube.com.                   IN      A

;; Query time: 2005 msec
;; SERVER: ::1#53(::1)
;; WHEN: Wed Jul 03 01:35:13 CEST 2019
;; MSG SIZE  rcvd: 29

not sure why, the server has been started, am I missing something?

Shagon94 commented 5 years ago
$ docker ps
CONTAINER ID        IMAGE                         COMMAND                  CREATED              STATUS              PORTS                NAMES
32409e99d8e6        xena/dnsd:v1.1.2              "sh /usr/sbin/entryp…"   About a minute ago   Up 2 seconds        0.0.0.0:53->53/udp   dnsd

$ docker container logs 324 -f
2019/07/02 23:47:56 conf: -zone-url=https://xena.greedo.xeserv.us/files/akua.zone
2019/07/02 23:47:56 conf: -zone-url=https://xena.greedo.xeserv.us/files/adblock.zone
2019/07/02 23:47:56 conf: -port=53
2019/07/02 23:47:56 conf: -forward-server=1.1.1.1:53
2019/07/02 23:47:57 https://xena.greedo.xeserv.us/files/akua.zone: 63 records
2019/07/02 23:48:00 https://xena.greedo.xeserv.us/files/adblock.zone: 85435 records
2019/07/02 23:48:56 stored https://xena.greedo.xeserv.us/files/akua.zone:"ptxr5a2eo"
2019/07/02 23:48:56 stored https://xena.greedo.xeserv.us/files/adblock.zone:"ppcc1u1xcfd"

$ dig @localhost youtube.com

; <<>> DiG 9.10.6 <<>> @localhost youtube.com
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25265
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;youtube.com.           IN  A

;; Query time: 2002 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jul 03 01:48:29 CEST 2019
;; MSG SIZE  rcvd: 29

$ dig @localhost youtube.com +trace

; <<>> DiG 9.10.6 <<>> @localhost youtube.com +trace
; (2 servers found)
;; global options: +cmd
;; Received 17 bytes from 127.0.0.1#53(localhost) in 2003 ms

note, I am running locally on a macos, I will try on a linux server on digitalocean,scaleway or hetzner if needed, not sure it matters

Xe commented 5 years ago

This is odd. I'm going to dig more into this. I have never seen it error like this before.

Shagon94 commented 5 years ago

Hey, sorry to bother, it might be because of the weird VPN configuration I have; I've tested on my home PC and it works as expected, please feel free to close this one.

On Jul 4, 2019, at 12:57 AM, Christine Dodrill notifications@github.com wrote:

This is odd. I'm going to dig more into this. I have never seen it error like this before.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Xe/x/issues/18?email_source=notifications&email_token=ACFXUL7WW75L5QVBHMDISETP5UVEPA5CNFSM4H5ASSE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZF4FEA#issuecomment-508281488, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFXUL57ISPGBTYJAZ7Y7VDP5UVEPANCNFSM4H5ASSEQ.