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

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

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

Comments

@davidsbond
Copy link
Contributor

@davidsbond davidsbond commented Oct 9, 2020

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/pkg@v0.0.0-20201009154706-060ec2f08e50

not found: github.com/davidsbond/pkg@v0.0.0-20201009154706-060ec2f08e50: 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/pkg@v0.0.0-20201009154706-060ec2f08e50: 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

@davidsbond davidsbond commented Oct 9, 2020

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

@davidsbond davidsbond closed this Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.