confluentinc / confluent-kafka-go

Confluent's Apache Kafka Golang client
Apache License 2.0
4.59k stars 652 forks source link

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

Open jrili-metr opened 10 months ago

jrili-metr commented 10 months ago

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/v2@v2.2.0
go: github.com/confluentinc/confluent-kafka-go/v2@v2.2.0 requires
        github.com/testcontainers/testcontainers-go@v0.14.0 requires
        github.com/containerd/containerd@v1.6.8 requires
        github.com/containerd/aufs@v1.0.0 requires
        github.com/containerd/containerd@v1.5.0-beta.3 requires
        github.com/Microsoft/hcsshim@v0.8.15 requires
        github.com/containerd/containerd@v1.5.0-beta.1 requires
        github.com/Microsoft/hcsshim/test@v0.0.0-20201218223536-d3e5debf77da requires
        github.com/docker/distribution@v0.0.0-20190905152932-14b96e55d84c requires
        github.com/mitchellh/osext@v0.0.0-20151018003038-5e2d6d41470f: 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/v2@v2.2.0

or

go get github.com/confluentinc/confluent-kafka-go/v2@v2.3.0

Checklist

Please provide the following information:

milindl commented 10 months ago

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 commented 10 months ago

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

[ec2-user@dev kyc]$ go get github.com/confluentinc/confluent-kafka-go/v2@v2.3.0
go: github.com/confluentinc/confluent-kafka-go/v2@v2.2.0 requires
        github.com/testcontainers/testcontainers-go@v0.14.0 requires
        github.com/containerd/containerd@v1.6.8 requires
        github.com/containerd/aufs@v1.0.0 requires
        github.com/containerd/containerd@v1.5.0-beta.3 requires
        github.com/Microsoft/hcsshim@v0.8.15 requires
        github.com/containerd/containerd@v1.5.0-beta.1 requires
        github.com/Microsoft/hcsshim/test@v0.0.0-20201218223536-d3e5debf77da requires
        github.com/docker/distribution@v0.0.0-20190905152932-14b96e55d84c requires
        github.com/mitchellh/osext@v0.0.0-20151018003038-5e2d6d41470f: 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.
lprakashv commented 10 months ago

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

lwdmk2 commented 8 months ago

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

unfortunately didn`t work

kslater-sb commented 7 months ago

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 commented 7 months ago

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 commented 6 months ago

FYI #1125 was closed without merging, https://github.com/confluentinc/confluent-kafka-go/pull/1136 is the updated PR.