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: can not import module from company's private repo #35029

Closed
JLLNANA opened this issue Oct 21, 2019 · 2 comments
Closed

cmd/go: can not import module from company's private repo #35029

JLLNANA opened this issue Oct 21, 2019 · 2 comments

Comments

@JLLNANA
Copy link

@JLLNANA JLLNANA commented Oct 21, 2019

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

$ go version
go1.12

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env

What did you do?

I have auth to access to company's private repo
go: finding github.companyname.com/user1/testpublic/b v1.1.1
go: github.companyname.com/user1/testpublic/b@v1.1.1: unknown revision b/v1.1.1

github.companyname.com is the repo belongs to the company when I submit some folder like this
testpublic---|
b---|
b.go
go.mod (module github.companyname.com/user1/testpublic/b)
go.mod (module github.companyname.com/user1/testpublic)

When I import module b from other code, it will give errors like
go: finding github.companyname.com/user1/testpublic/b v1.1.1
go: github.companyname.com/user1/testpublic/b@v1.1.1: unknown revision b/v1.1.1

What did you expect to see?

I want to publish the module with different versions to the company's private repo

What did you see instead?

@bcmills bcmills changed the title Can not import the module belonged to company's private repo cmd/go: can not import module from company's private repo Oct 21, 2019
@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Oct 21, 2019

Please complete the issue template.

  • What is the output of go env?
  • What specific go commands did you run, and what errors (if any) did they output before unknown revision?
  • What happens using the latest release (go1.13.3)?

For this particular case:

  • Is github.companyname.com/user1/testpublic the repository in question?
  • What tags involving v1.1.1 does it have?
  • Is there a b/go.mod file within the repository?
@JLLNANA

This comment has been minimized.

Copy link
Author

@JLLNANA JLLNANA commented Oct 22, 2019

#31143
Solved. The same problem as this link

@JLLNANA JLLNANA closed this Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.