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

Fatal error during go get v2.2.0/2.3.0 #1102

Open
2 of 7 tasks
jrili-metr opened this issue Nov 9, 2023 · 7 comments
Open
2 of 7 tasks

Fatal error during go get v2.2.0/2.3.0 #1102

jrili-metr opened this issue Nov 9, 2023 · 7 comments

Comments

@jrili-metr
Copy link

jrili-metr commented Nov 9, 2023

Description

We are unable to perform go get for confluent-kafka-go using the v2.2.0 tag since 3 Nov 2023.
It appears that one of the dependency repositories (https://github.com/mitchellh/osext) have either been set to private or was deleted.

Please see the error message below encountered during go get:

[ec2-user@dev kyc]$ go get github.com/confluentinc/confluent-kafka-go/[email protected]
go: github.com/confluentinc/confluent-kafka-go/[email protected] requires
        github.com/testcontainers/[email protected] requires
        github.com/containerd/[email protected] requires
        github.com/containerd/[email protected] requires
        github.com/containerd/[email protected] requires
        github.com/Microsoft/[email protected] requires
        github.com/containerd/[email protected] requires
        github.com/Microsoft/hcsshim/[email protected] requires
        github.com/docker/[email protected] requires
        github.com/mitchellh/[email protected]: invalid version: git ls-remote -q origin in /home/ec2-user/.gvm/pkgsets/go1.20.5/global/pkg/mod/cache/vcs/94ed57c5b21c953d93b47487113db43a5c9b69fd990329ec70dc77348c4dd443: exit status 128:
        ERROR: Repository not found.
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.

How to reproduce

go get github.com/confluentinc/confluent-kafka-go/[email protected]

or

go get github.com/confluentinc/confluent-kafka-go/[email protected]

Checklist

Please provide the following information:

  • confluent-kafka-go and librdkafka version (LibraryVersion()):
  • Apache Kafka broker version:
  • Client configuration: ConfigMap{...}
  • Operating system: Amazon Linux 2
  • Provide client logs (with "debug": ".." as necessary)
  • Provide broker log excerpts
  • Critical issue
@jrili-metr jrili-metr changed the title Unable to go get v2.2.0 Fatal error during go get v2.2.0 Nov 9, 2023
@milindl
Copy link
Contributor

milindl commented Nov 9, 2023

Hi @jrili-metr - could you once try with v2.3.0, if you have the same problem? We have reduced the size of the dependencies by quite a bit by upgrading to go 1.17.

@jrili-metr
Copy link
Author

Hi @milindl, tried also with v2.3.0, same error is encountered.

[ec2-user@dev kyc]$ go get github.com/confluentinc/confluent-kafka-go/[email protected]
go: github.com/confluentinc/confluent-kafka-go/[email protected] requires
        github.com/testcontainers/[email protected] requires
        github.com/containerd/[email protected] requires
        github.com/containerd/[email protected] requires
        github.com/containerd/[email protected] requires
        github.com/Microsoft/[email protected] requires
        github.com/containerd/[email protected] requires
        github.com/Microsoft/hcsshim/[email protected] requires
        github.com/docker/[email protected] requires
        github.com/mitchellh/[email protected]: invalid version: git ls-remote -q origin in /home/ec2-user/.gvm/pkgsets/go1.20.5/global/pkg/mod/cache/vcs/94ed57c5b21c953d93b47487113db43a5c9b69fd990329ec70dc77348c4dd443: exit status 128:
        ssh: Could not resolve hostname github.com: Name or service not known
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.

@jrili-metr jrili-metr changed the title Fatal error during go get v2.2.0 Fatal error during go get v2.2.0/2.3.0 Nov 13, 2023
@lprakashv
Copy link

You can use GOPROXY=https://proxy.golang.org/cached-only it worked for me.

@lwdmk2
Copy link

lwdmk2 commented Jan 11, 2024

You can use GOPROXY=https://proxy.golang.org/cached-only it worked for me.

unfortunately didn`t work

@kslater-sb
Copy link

having the same issue as well... any plans for updating the next version to use newer version of containerd? v1.7.13 does not import this dependency...

@milindl
Copy link
Contributor

milindl commented Feb 9, 2024

I think #1125 should remove this dependency. containerd is an indirect dependency for us due to testcontainers.
I'm looking into this PR.

@jrili-metr
Copy link
Author

FYI #1125 was closed without merging, #1136 is the updated PR.

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

No branches or pull requests

5 participants