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 mod error on fresh git clone #2457

Closed
rootkea opened this issue Dec 9, 2022 · 0 comments · Fixed by #2461
Closed

go mod error on fresh git clone #2457

rootkea opened this issue Dec 9, 2022 · 0 comments · Fixed by #2461

Comments

@rootkea
Copy link

rootkea commented Dec 9, 2022

What happened?

On a fresh git clone I get the mod error on trying to build one of the examples (websocket-initfunc)

Steps to reproduce:

$ git clone https://github.com/99designs/gqlgen
$ cd gqlgen/_examples/websocket-initfunc/server/
$ go mod tidy
go: finding module for package github.com/gqlgen/_examples/websocket-initfunc/server/graph/generated
github.com/gqlgen/_examples/websocket-initfunc/server imports
	github.com/gqlgen/_examples/websocket-initfunc/server/graph/generated: cannot find module providing package github.com/gqlgen/_examples/websocket-initfunc/server/graph/generated: module github.com/gqlgen/_examples/websocket-initfunc/server/graph/generated: git ls-remote -q origin in /home/rootkea/go/pkg/mod/cache/vcs/13c3f913e737c4370eda03277c919ac34938d093606e9e8abb89c76329806c6c: exit status 128:
	fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
$

versions

$ go version
go version go1.18.1 linux/amd64
$
StevenACoffman added a commit that referenced this issue Dec 9, 2022
Signed-off-by: Steve Coffman <[email protected]>
StevenACoffman added a commit that referenced this issue Dec 9, 2022
Signed-off-by: Steve Coffman <[email protected]>
StevenACoffman added a commit that referenced this issue Dec 9, 2022
Signed-off-by: Steve Coffman <[email protected]>

Signed-off-by: Steve Coffman <[email protected]>
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

Successfully merging a pull request may close this issue.

1 participant