-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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 package" with Go 1.12 and Git 2.21.0 #31143
Comments
The above omitted my (Fixed most of them.) |
Were there other errors printed before the I suspect this is a duplicate of #26232, but without more detail it's hard to be certain. |
This is the complete output of the "go build" command: [pgable000@elk-es-wc-01 test]$ go build When I run: curl -L https://github.enterprise.com/pgable000/elasticCommonSchema?go-get=1 I get HTML. [pgable000@elk-es-wc-01 elasticCommonSchema]$ curl -L https://github.enterprise.com/pgable000/elasticCommonSchema?go-get=1
Is this what you expected? |
FWIW, I can't build on Windows, either. |
So does the repository hosted at (What happens if you run:
?) |
@Phillip-Gabler ping |
Is there an update on this? |
@SUMUKHA-PK, this issue is labeled |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?go version go1.12.1 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputALSO -- git version 2.21.0, and
GO111MODULE=on
What did you do?
"go build" an executable using modules in a private (enterprise) github repository.
Module included as:
package main
import (
"fmt"
ecs "github.enterprise.com/pgable000/"
"net/url"
)
Module and program using module exist in directory tree as
/home/pgable000/GoWorkspace/src/github.enterprise.com/pgable000/module_name
/home/pgable000/GoWorkspace/src/github.enterprise.com/pgable000/program_name
Both the module and program have go.mod files
Here is a simple test.go that demonstrates the problem I am having:
package main
import (
"fmt"
ecs "github.enterprise.com/pgable000/elasticCommonSchema"
)
func main() {
fmt.Println(ecs.DefaultMapping)
}
"go build" produces:
[pgable000@elk-es-wc-01 test]$ go build
build github.enterprise.com/pgable000/test: cannot load github.enterprise.com/pgable000/elasticCommonSchema: cannot find module providing package github.enterprise.com/pgable000/elasticCommonSchema
What did you expect to see?
I expected an error-free build.
What did you see instead?
build program_name: cannot load github.enterprise.com/pgable000/module_name: cannot find module providing package github.enterprise.com/pgable000/module_name
.gitconfig:
[user]
name = Phillip Gabler
email = phillip_gabler@enterprise.com
[url "ssh://git@github.enterprise.com"]
insteadOf = https://github.enterprise.com
The text was updated successfully, but these errors were encountered: