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

package github.com/google/go-github/v29/github: cannot find package "github.com/google/go-github/v29/github" in any of: #291

Closed
1 of 5 tasks
Starwort opened this issue Jun 26, 2020 · 9 comments

Comments

@Starwort
Copy link

How have you installed cordless

  • Arch User Repository
  • Snap
  • scoop
  • brew
  • go get

What happened, How do you reproduce this bug, Error output

starwort@Starlight:~/go$ 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/lib/go-1.12/src/github.com/google/go-github/v29/github (from $GOROOT)
        /home/starwort/go/src/github.com/google/go-github/v29/github (from $GOPATH)

How to fix

go get -u github.com/google/go-github/github seems to work but I suspect that isn't the most stable way of doing it
Could also be something to do with GO111MODULE=on but it doesn't seem to be an environment variable

System information

Key Value
OS WSL Ubuntu 18.04
Architechture Linux 4.4.0-18362-Microsoft x86_64
@Bios-Marcel
Copy link
Owner

go version?

@Bios-Marcel
Copy link
Owner

Oh, my question has answered itself. You have go 1.12. In go 1.12 GO_111MODULE is on auto. Since 1.13 it's on. Try forcing it to on

@Starwort
Copy link
Author

Ok, but I don't use go - how do I do that? ^^'
The documentation for it I saw all said 'set GO_111MODULE' but it doesn't seem to be a BASH variable...

TIA

@Bios-Marcel
Copy link
Owner

Well, set the environment variable with that name. It's not a go thing and not a cordless thing.
Just a shell thing. You can simply put export GO111MODULE=on in your ~/.bashrc.

@Starwort
Copy link
Author

Ahhhhh, thanks! Trying that now

@Starwort
Copy link
Author

Starwort commented Jun 27, 2020

Appears to work (although now I'm getting a lot of terminal spam!). Maybe you should update the documentation that specifies go 1.12+ :P

@Bios-Marcel
Copy link
Owner

terminal spam?

@Starwort
Copy link
Author

Starwort commented Jun 27, 2020

From installing packages (or pieces of go software. Idk)

@Bios-Marcel
Copy link
Owner

That's normal. It's just telling you which dependencies it's getting in order to do the compilation.

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