xray icon indicating copy to clipboard operation
xray copied to clipboard

Installation issue

Open atastycookie opened this issue 4 years ago • 1 comments

Hello @evilsocket

I'm trying to set up the Xray and getting errors like below error.

via Docker image

➜  xray git:(master) docker build -t xraydocker .

Sending build context to Docker daemon   8.92MB
Step 1/7 : FROM golang:alpine
 ---> 3024b4e742b0
Step 2/7 : RUN apk add --no-cache git make
 ---> Using cache
 ---> 30023051ed15
Step 3/7 : RUN go get github.com/evilsocket/xray &&     cd $GOPATH/src/github.com/evilsocket/xray/ &&     make get_glide &&     make install_dependencies &&     go get -u github.com/jteeuwen/go-bindata/... &&     make build
 ---> Running in 1104275da16e
package github.com/moul/http2curl: code in directory /go/src/github.com/moul/http2curl expects import "moul.io/http2curl"
The command '/bin/sh -c go get github.com/evilsocket/xray &&     cd $GOPATH/src/github.com/evilsocket/xray/ &&     make get_glide &&     make install_dependencies &&     go get -u github.com/jteeuwen/go-bindata/... &&     make build' returned a non-zero code: 1

via manual

➜  pentest go get github.com/evilsocket/xray

package github.com/moul/http2curl: code in directory /Users/REDACTED/go/src/github.com/moul/http2curl expects import "moul.io/http2curl"

atastycookie avatar Nov 12 '19 10:11 atastycookie

The main issue I am finding is in the Makefile. It is trying to get Glide, which is a package manager for Go. Go uses Gomod now, so it is not working properly. I am working on seeing if there is a workaround.

derReineke avatar Nov 08 '20 13:11 derReineke

fixed with https://github.com/evilsocket/xray/commit/171655741e384f5b9d1ddbc6145a190d2e0af4e6

evilsocket avatar Aug 27 '22 12:08 evilsocket