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
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@JLLNANA
Copy link

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 bcmills added modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Oct 21, 2019
@bcmills
Copy link
Contributor

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?

@bcmills bcmills added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Oct 21, 2019
@JLLNANA
Copy link
Author

JLLNANA commented Oct 22, 2019

#31143
Solved. The same problem as this link

@JLLNANA JLLNANA closed this as completed Oct 22, 2019
@golang golang locked and limited conversation to collaborators Oct 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants