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

unable to install? #119

Open
fredo888 opened this issue Aug 4, 2021 · 3 comments
Open

unable to install? #119

fredo888 opened this issue Aug 4, 2021 · 3 comments

Comments

@fredo888
Copy link

fredo888 commented Aug 4, 2021

package github.com/gojek/heimdall/v7: cannot find package "github.com/gojek/heimdall/v7" in any of:
c:\go\src\github.com\gojek\heimdall\v7 (from $GOROOT)
C:\Users\user\go\src\github.com\gojek\heimdall\v7 (from $GOPATH)

while attempting to do go get -u github.com/gojek/heimdall/v7

pls help

@bokunodev
Copy link

bokunodev commented Aug 5, 2021

is gomodule enabled ? try
export GO111MODULE=on ; go get -v -d github.com/gojek/heimdall/v7

@fredo888
Copy link
Author

fredo888 commented Aug 5, 2021

is gomodule enabled ? try
export GO111MODULE=on ; go get -v -d github.com/gojek/heimdall/v7

this is what i get: github.com/gojek/heimdall/v7 upgrade => v7.0.2

but then why i try to run a example this is also what i get: cannot find module providing package github.com/gojek/heimdall/v7: working directory is not part of a module

and if i do export GO111MODULE=auto: cannot find package "github.com/gojek/heimdall/v7" in any of:
/usr/local/go/src/github.com/gojek/heimdall/v7 (from $GOROOT)
/root/Projects/Proj1/src/github.com/gojek/heimdall/v7 (from $GOPATH)

maybe i installed golang wrong?

@bokunodev
Copy link

bokunodev commented Aug 5, 2021

gomodule is enabled by default since release 1.15, i believe.
if you aren't using go module, you have to work inside GOPATH.
gomodule's doc

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

2 participants