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

Go get ginkgo fails to get fsnotify #650

Closed
tanayk2610 opened this issue Mar 10, 2020 · 4 comments
Closed

Go get ginkgo fails to get fsnotify #650

tanayk2610 opened this issue Mar 10, 2020 · 4 comments

Comments

@tanayk2610
Copy link

When I run go get -u -v github.com/onsi/ginkgo/ginkgo, I get the following error:

# go get -u -v github.com/onsi/ginkgo/ginkgo
go: finding github.com/onsi/ginkgo/ginkgo latest
Fetching https://golang.org/x/sys?go-get=1
Fetching https://gopkg.in/yaml.v2?go-get=1
Fetching https://golang.org/x/text?go-get=1
Fetching https://golang.org/x/sync?go-get=1
Fetching https://gopkg.in/fsnotify.v1?go-get=1
Fetching https://gopkg.in/check.v1?go-get=1
Parsing meta tags from https://golang.org/x/text?go-get=1 (status code 200)
Parsing meta tags from https://golang.org/x/sync?go-get=1 (status code 200)
get "golang.org/x/sync": found meta tag get.metaImport{Prefix:"golang.org/x/sync", VCS:"git", RepoRoot:"https://go.googlesource.com/sync"} at https://golang.org/x/sync?go-get=1
get "golang.org/x/text": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
get "golang.org/x/sys": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys?go-get=1
go: finding golang.org/x/sync latest
Fetching https://gopkg.in/tomb.v1?go-get=1
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
get "golang.org/x/net": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net?go-get=1
Fetching https://golang.org/x/xerrors?go-get=1
Parsing meta tags from https://golang.org/x/xerrors?go-get=1 (status code 200)
get "golang.org/x/xerrors": found meta tag get.metaImport{Prefix:"golang.org/x/xerrors", VCS:"git", RepoRoot:"https://go.googlesource.com/xerrors"} at https://golang.org/x/xerrors?go-get=1
Fetching https://golang.org/x/tools?go-get=1
go: finding golang.org/x/sys latest
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
get "golang.org/x/tools": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools?go-get=1
go: finding golang.org/x/xerrors latest
go: finding golang.org/x/net latest
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
get "golang.org/x/crypto": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto?go-get=1
go: finding golang.org/x/tools latest
Fetching https://golang.org/x/mod?go-get=1
Parsing meta tags from https://golang.org/x/mod?go-get=1 (status code 200)
get "golang.org/x/mod": found meta tag get.metaImport{Prefix:"golang.org/x/mod", VCS:"git", RepoRoot:"https://go.googlesource.com/mod"} at https://golang.org/x/mod?go-get=1
go: finding golang.org/x/crypto latest
Parsing meta tags from https://gopkg.in/check.v1?go-get=1 (status code 200)
get "gopkg.in/check.v1": found meta tag get.metaImport{Prefix:"gopkg.in/check.v1", VCS:"git", RepoRoot:"https://gopkg.in/check.v1"} at https://gopkg.in/check.v1?go-get=1
Parsing meta tags from https://gopkg.in/yaml.v2?go-get=1 (status code 200)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at https://gopkg.in/yaml.v2?go-get=1
Parsing meta tags from https://gopkg.in/fsnotify.v1?go-get=1 (status code 200)
get "gopkg.in/fsnotify.v1": found meta tag get.metaImport{Prefix:"gopkg.in/fsnotify.v1", VCS:"git", RepoRoot:"https://gopkg.in/fsnotify.v1"} at https://gopkg.in/fsnotify.v1?go-get=1
Parsing meta tags from https://gopkg.in/tomb.v1?go-get=1 (status code 200)
get "gopkg.in/tomb.v1": found meta tag get.metaImport{Prefix:"gopkg.in/tomb.v1", VCS:"git", RepoRoot:"https://gopkg.in/tomb.v1"} at https://gopkg.in/tomb.v1?go-get=1
go: finding gopkg.in/check.v1 latest
go: finding gopkg.in/tomb.v1 latest
go: gopkg.in/fsnotify.v1@v1.4.8: go.mod has non-....v1 module path "github.com/fsnotify/fsnotify" at revision v1.4.8
go get: error loading module requirements

The workaround was to use ginkgo v1.11.0.

@Bablzz
Copy link

Bablzz commented Mar 11, 2020

Try go get gopkg.in/fsnotify/fsnotify.v1

@EliiseS
Copy link

EliiseS commented Mar 12, 2020

I also experienced this issue while trying to build my devcontainer:

[132834 ms] build github.com/onsi/ginkgo/ginkgo: cannot load gopkg.in/fsnotify.v1: cannot find module providing package gopkg.in/fsnotify.v1
[133630 ms] The command '... go get github.com/onsi/ginkgo/ginkgo@v1.11.0  ...' returned a non-zero code: 1

Changing from go get github.com/onsi/ginkgo/ginkgo@v1.11.0 to go get github.com/onsi/ginkgo/ginkgo@v1.12.0 fixed the issue

@ryancurrah
Copy link
Contributor

ryancurrah commented Apr 28, 2020

@tanayk2610, @Bablzz, @EliiseS this issue is resolved as of yesterday. A PR was merged that changed the package that caused this error.

#667

@blgm
Copy link
Collaborator

blgm commented May 20, 2020

Since there's a fix for this and it has been released, I'm going to close this. Please raise another issue if there are still problems.

@blgm blgm closed this as completed May 20, 2020
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

5 participants