Skip to content

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

Closed
@davidsbond

Description

@davidsbond

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

Activity

davidsbond

davidsbond commented on Oct 9, 2020

@davidsbond
ContributorAuthor

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

locked and limited conversation to collaborators on Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @davidsbond@gopherbot

        Issue actions

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