Skip to content

proxy.golang.org: 410 gone on public repository when doing a tool import #41887

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

Closed
davidsbond opened this issue Oct 9, 2020 · 1 comment
Closed

Comments

@davidsbond
Copy link
Contributor

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

go version go1.15 linux/amd64

Does this issue reproduce with the latest release?

Yes

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

GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/david/.cache/go-build"
GOENV="/home/david/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/david/go/pkg/mod"
GONOPROXY="github.com/utilitywarehouse/*"
GONOSUMDB="github.com/utilitywarehouse/*"
GOOS="linux"
GOPATH="/home/david/go"
GOPRIVATE="github.com/utilitywarehouse/*"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/david/go/go1.15"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/david/go/go1.15/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/david/git/bytecrypt/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-build155236877=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Committed to my repository https://github.com/davidsbond/pkg, containing a cmd directory which has a main.go. I am using a tools.go file and vendoring to install the new binary like so:

tools.go:

//+build tools

package tools

import (
	_ "github.com/davidsbond/pkg/cmd/pkg-build"
)

The module I'm currently working with gets an error running go mod tidy when the module requires pkg.dsb.dev v0.0.0-20201009154706-060ec2f08e50 for package contents as well as the binary included in pkg/cmd/pkg-build.

When I remove the import line from the tools.go file, the modules download fine for that version. However, when I include the import in tools.go I get:

https://sum.golang.org/lookup/github.com/davidsbond/[email protected]

not found: github.com/davidsbond/[email protected]: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /tmp/gopath/pkg/mod/cache/vcs/8faae6178ee6230f04ecbf18b6e88b47018daa8afc4afcebe958647e8e1283f3: exit status 128:
	fatal: unable to access 'https://github.com/davidsbond/pkg/': Could not resolve host: github.com

What did you expect to see?

The cmd/pkg-build folder to be downloaded and included in my vendor folder alongside the other packages in the module

What did you see instead?

not found: github.com/davidsbond/[email protected]: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /tmp/gopath/pkg/mod/cache/vcs/8faae6178ee6230f04ecbf18b6e88b47018daa8afc4afcebe958647e8e1283f3: exit status 128:
	fatal: unable to access 'https://github.com/davidsbond/pkg/': Could not resolve host: github.com
@davidsbond
Copy link
Contributor Author

I forgot I was using a vanity import. My bad.

@golang golang locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants