Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

go get (cannot find package) #315

Closed
ChillerDragon opened this issue Aug 6, 2020 · 4 comments
Closed

go get (cannot find package) #315

ChillerDragon opened this issue Aug 6, 2020 · 4 comments

Comments

@ChillerDragon
Copy link

$ uname -a
Linux debian 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
$ go version
go version go1.14.6 linux/amd64
$ go get -u github.com/Bios-Marcel/cordless
package github.com/google/go-github/v29/github: cannot find package "github.com/google/go-github/v29/github" in any of:                                                                                           
        /usr/local/go/src/github.com/google/go-github/v29/github (from $GOROOT)
        /home/chiller/go/src/github.com/google/go-github/v29/github (from $GOPATH)
@Bios-Marcel
Copy link
Owner

You seem to have go modules disabled

@ChillerDragon
Copy link
Author

o.O how can that happen? I installed go using:

git clone https://github.com/udhos/update-golang
cd update-golang
sudo ./update-golang.sh

And I could install gotop just fine using

go get github.com/cjbassi/gotop

@Bios-Marcel
Copy link
Owner

try it with GO111MODULE=on in front of the command

@ChillerDragon
Copy link
Author

try it with GO111MODULE=on in front of the command

nice that worked thanks :)

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

No branches or pull requests

2 participants