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

Cannot find package "github.com/go-redis/redis/v7" on go get #642

Closed
linuxgemini opened this issue Jun 27, 2020 · 8 comments
Closed

Cannot find package "github.com/go-redis/redis/v7" on go get #642

linuxgemini opened this issue Jun 27, 2020 · 8 comments
Labels

Comments

@linuxgemini
Copy link
Contributor

The command go get github.com/oauth2-proxy/oauth2-proxy fails with a "not found" error.

Expected Behavior

root@crane:~# go get github.com/oauth2-proxy/oauth2-proxy
root@crane:~#

Current Behavior

root@crane:~# go get github.com/oauth2-proxy/oauth2-proxy

package github.com/go-redis/redis/v7: cannot find package "github.com/go-redis/redis/v7" in any of:
        /usr/local/go/src/github.com/go-redis/redis/v7 (from $GOROOT)
        /root/Projects/Uno/src/github.com/go-redis/redis/v7 (from $GOPATH)
root@crane:~#

Possible Solution

I didn't come up with one.

Steps to Reproduce (for bugs)

go get github.com/oauth2-proxy/oauth2-proxy

Context

The v6.0.0 release does not have assets available.

Your Environment

root@crane:~# go version
go version go1.14.1 linux/amd64

root@crane:~# uname -a
Linux crane 4.4.0-184-generic #214-Ubuntu SMP Thu Jun 4 10:14:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

root@crane:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:        16.04
Codename:       xenial
@JoelSpeed
Copy link
Member

Release assets have now been added, apologies for the delay. Docker images are coming shortly.

Not sure why there is an issue doing go get, that shouldn't happen 🤔 Need to work that one out

@JoelSpeed
Copy link
Member

JoelSpeed commented Jun 27, 2020

Go-redis requires module support, so try GO111MODULE=on go get github.com/oauth2-proxy/oauth2-proxy and you may get it working

@linuxgemini
Copy link
Contributor Author

Alright that worked, I forgot that env very quickly (like I used it literally yesterday for the gitlab-group PR).

I think this should be mentioned on README.

@silcowitz
Copy link

Had the same issue and tried
GO111MODULE=on go get github.com/oauth2-proxy/oauth2-proxy

However, it seems to build an outdated version of oauth2-proxy, because some of the options in the docs are not working when trying to launch it. Strangely,

./go/bin/oauth2-proxy --version
oauth2_proxy undefined (built with go1.15)

gives an "undefined" version number. Anybody know that's happening here?

@silcowitz
Copy link

silcowitz commented Aug 26, 2020

Sorry for the confusion here, I realize that I most likely did get the latest version using the command (see #740)

# GO111MODULE=on go get github.com/oauth2-proxy/oauth2-proxy

Anyway, it would be great if the output of oauth2-proxy --version would provide the real version number or maybe the git rev. used, or at least in the HTML displayed when it's running (here it also says undefined, so it could cast doubt on whether it's running a vulnerable, outdated version or not)

Thanks anyway,
Morten

@JoelSpeed
Copy link
Member

@silcowitz The version is injected by the build target in our makefile. If you use make build to build the binary, you will see a proper version number with git information if it is an untagged commit.

@silcowitz
Copy link

@JoelSpeed Thanks I'll try that

@github-actions
Copy link
Contributor

This issue has been inactive for 60 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 7 days, the issue will be marked closed.

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

No branches or pull requests

3 participants