sammy007 / open-ethereum-pool

Open Ethereum Mining Pool
GNU General Public License v3.0
1.4k stars 1.12k forks source link

make failed, cannot find main module #461

Closed fuqiangZ closed 4 years ago

fuqiangZ commented 4 years ago

System information

OS & Version: Linux/OSX

ubuntu 16.04 go version go1.13.15 linux/amd64

Commit branch and hash: (master, ba60e1c)

branch: master

Expected behaviour

make build success

Actual behaviour

build/env.sh go get -v ./...
go: cannot find main module, but found .git/config in /opt/bitcoin/pool/open-ethereum-pool/build/_workspace/src/github.com/sammy007/open-ethereum-pool
    to create a module there, run:
    go mod init
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 1

Steps to reproduce the behaviour

# git clone  https://github.com/sammy007/open-ethereum-pool.git
#cd open-ethereum-pool
# export GO111MODULE=on
# export GOPROXY=https://goproxy.io
# source /etc/profile
# make

Is my go version too hight or any env wrong ? I'd appreciate some help.

lmxdawn commented 3 years ago

Excuse me, how was it solved? I also encountered the same problem

0xIbrahim-t commented 2 years ago

System information

OS & Version: Linux/OSX

ubuntu 16.04 go version go1.13.15 linux/amd64

Commit branch and hash: (master, ba60e1c)

branch: master

Expected behaviour

make build success

Actual behaviour

build/env.sh go get -v ./...
go: cannot find main module, but found .git/config in /opt/bitcoin/pool/open-ethereum-pool/build/_workspace/src/github.com/sammy007/open-ethereum-pool
  to create a module there, run:
  go mod init
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 1

Steps to reproduce the behaviour

# git clone  https://github.com/sammy007/open-ethereum-pool.git
#cd open-ethereum-pool
# export GO111MODULE=on
# export GOPROXY=https://goproxy.io
# source /etc/profile
# make

Is my go version too hight or any env wrong ? I'd appreciate some help.

try export GO111MODULE=auto