Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

use of internal package not allowed #914

Closed
particledecay opened this issue Aug 11, 2018 · 2 comments
Closed

use of internal package not allowed #914

particledecay opened this issue Aug 11, 2018 · 2 comments
Labels

Comments

@particledecay
Copy link

After importing go-git into my project, I can no longer build successfully. I get the following error:

➜ go build
../go/pkg/mod/github.com/src-d/go-git@v4.5.0+incompatible/repository.go:14:2: use of internal package gopkg.in/src-d/go-git.v4/internal/revision not allowed in github.com/src-d/go-git

I'm using go-1.11beta3 and this is a project outside of $GOPATH. I'm using go modules for this project.

@kuba--
Copy link
Contributor

kuba-- commented Aug 14, 2018

@particledecay how did you import go-git (what import path did you use)?
You cannot import as github.com/src-d/go-git. It has to go via gopkg.in, so for go-git 4.X it will be: gopkg.in/src-d/go-git.v4

@smola smola added question and removed question labels Aug 17, 2018
@smola
Copy link
Collaborator

smola commented Sep 6, 2018

Closing. Please, reopen if there is any doubt about the resolution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants