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 run tests locally after fresh clone #181

Open
5 of 6 tasks
kevgo opened this issue Jun 28, 2022 · 1 comment
Open
5 of 6 tasks

Cannot run tests locally after fresh clone #181

kevgo opened this issue Jun 28, 2022 · 1 comment
Labels
bug Something is not working.

Comments

@kevgo
Copy link
Contributor

kevgo commented Jun 28, 2022

Preflight checklist

Describe the bug

The fork github.com/zepatrik/pop does not seem to contain revision ce05da9328cd.

Reproducing the bug

  • empty the Go module cache
  • clone this repo: git clone git@github.com:ory/cli.git
  • run make test

expected behavior: it installs some stuff and then runs the tests

actual behavior: the task aborts with this error message:

go test -p 1 -tags sqlite -count=1 -failfast ./...
go: downloading github.com/zepatrik/pop/v6 v6.0.0-20220519141323-ce05da9328cd
../../go/pkg/mod/github.com/ory/kratos@v0.9.0-alpha.3.0.20220516102132-1090a82b9eae/driver/registry_default.go:17:2: github.com/zepatrik/pop/v6@v6.0.0-20220519141323-ce05da9328cd: invalid version: unknown revision ce05da9328cd
../../go/pkg/mod/github.com/ory/kratos@v0.9.0-alpha.3.0.20220516102132-1090a82b9eae/persistence/sql/persister.go:13:2: github.com/zepatrik/pop/v6@v6.0.0-20220519141323-ce05da9328cd: invalid version: unknown revision ce05da9328cd
../../go/pkg/mod/github.com/ory/x@v0.0.394/logrusx/helper.go:12:2: github.com/zepatrik/pop/v6@v6.0.0-20220519141323-ce05da9328cd: invalid version: unknown revision ce05da9328cd
make: *** [Makefile:50: test] Error 1

Relevant log output

No response

Relevant configuration

No response

Version

master @ 9e593ae

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

No response

Additional Context

I verified that the commit is referenced here and doesn't exist in the clone. Strange that CI doesn't catch this.

  • go version go1.18.3 linux/amd64
  • git version 2.36.1
@kevgo kevgo added the bug Something is not working. label Jun 28, 2022
@kevgo
Copy link
Contributor Author

kevgo commented Jul 1, 2022

This works on most machines because the official Go Proxy still caches this revision. It breaks on my Fedora machine because Fedora doesn't use the Google Proxy.

The complete steps to reproduce this (on my Debian machine where this normally works) are therefore:

rm -rf ~/.cache/go-build/
sudo rm -rf ~/go/pkg/
env GOPROXY=direct go test github.com/ory/cli/...

A workaround for those encountering this issue is manually setting the environment variable GOPROXY to "https://proxy.golang.org,direct". I assume the root cause will go away when the override of github.com/gobuffalo/pop/v6 to github.com/zepatrik/pop/v6@v6.0.0-20220519141323-ce05da9328cd gets removed after the modifications get merged upstream.

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

No branches or pull requests

1 participant