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

cmd/go: cannot find module providing a package #27907

Closed
jclc opened this issue Sep 27, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@jclc
Copy link

commented Sep 27, 2018

What version of Go are you using (go version)?

1.11

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

linux/amd64

What did you do?

Tried importing and using the package github.com/go-gl/mathgl/mgl64 in a project.

What did you expect to see?

Go downloading the package, adding the repository to go.mod and building the executable.

What did you see instead?

$ go run .
go: finding github.com/go-gl/mathgl/mgl64 latest
go: finding github.com/go-gl/mathgl/mgl32 latest
go: finding github.com/go-gl/mathgl latest
phys/phys.go:4:2: unknown import path "github.com/go-gl/mathgl/mgl64": cannot find module providing package github.com/go-gl/mathgl/mgl64

Go does add the repository to go.mod as:

require (
	github.com/go-gl/mathgl v0.0.0-20180804195959-cdf14b6b8f8a
)

but it is not found when building.

@jclc

This comment has been minimized.

Copy link
Author

commented Sep 27, 2018

Very strange. Resetting the wireless connection fixed this. Looks like this was a network issue rather than a Go issue.

@jclc jclc closed this Sep 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.