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

"no required module provides package" #200

Open
mozai opened this issue Jun 1, 2022 · 0 comments
Open

"no required module provides package" #200

mozai opened this issue Jun 1, 2022 · 0 comments

Comments

@mozai
Copy link

mozai commented Jun 1, 2022

Problem:

Software won't build when following the instructions in readme.adoc

Steps taken:

Using Go v1.18.2 on Linux

mkdir -p $GOPATH/src/github.com/gluster
cd $GOPATH/src/github.com/gluster
git clone https://github.com/gluster/gluster-prometheus.git
cd gluster-prometheus
./scripts/install-reqs.sh
PREFIX=/usr make

Seen:

Building gluster-exporter v0.3-dev.93.git3ebaacc
no required module provides package github.com/gluster/gluster-prometheus/gluster-exporter: go.mod file not found in current directory or any parent directory; see 'go help modules'
make: *** [Makefile:66: build/gluster-exporter] Error 1

other information

Seems to be a requirement in Go versions after 1.16. A StackExchange answer has a workaround:
GO111MODULE=auto PREFIX=/usr make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant