Skip to content

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

Closed
@JLLNANA

Description

@JLLNANA

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions