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: Could not read from remote repository #47913

Closed
AmirHussain93 opened this issue Aug 23, 2021 · 2 comments
Closed

cmd/go: Could not read from remote repository #47913

AmirHussain93 opened this issue Aug 23, 2021 · 2 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@AmirHussain93
Copy link

AmirHussain93 commented Aug 23, 2021

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

$ go version 1.17

Does this issue reproduce with the latest release?

yes

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

$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/home/***/go/bin"
GOCACHE="/home/***/.cache/go-build"
GOENV="/home/***/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/***/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/***/go"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/usr/local/go"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.17"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/****/go/src/github.*****.net/***-****/google/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build889135487=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I run the command "go build"

What did you expect to see?

binary file for the code

What did you see instead?

go: github.com/blang/semver@v3.5.1+incompatible: reading github.com/blang/semver/go.mod at revision v3.5.1: git ls-remote -q origin in /home/***/go/pkg/mod/cache/vcs/b6bc18656304150c7024c1930100743429fbf5f74599099c942888fecfe57378: 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.
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading go.mongodb.org/mongo-driver v1.7.1
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/cenkalti/backoff/v4 v4.1.1
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading github.com/tidwall/gjson v1.8.1
go: downloading google.golang.org/api v0.50.0
go: downloading github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
go: github.com/blang/semver@v3.5.1+incompatible: reading github.com/blang/semver/go.mod at revision v3.5.1: git ls-remote -q origin in /home/amir/go/pkg/mod/cache/vcs/b6bc18656304150c7024c1930100743429fbf5f74599099c942888fecfe57378: 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.
@seankhliao
Copy link
Member

does git clone https://github.com/blang/semver work for you?

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Aug 23, 2021
@seankhliao seankhliao changed the title Go trying to fetch go.mod file for incompatible dependency cmd/go: Could not read from remote repository Aug 23, 2021
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Sep 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge 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