shurcooL / githubv4

Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql).
MIT License
1.11k stars 89 forks source link

go get fails '...but does not contain package github.com/shurcooL/go/ctxhttp' #56

Closed klauern closed 4 years ago

klauern commented 4 years ago

Attempting to go get -u github.com/shurcooL/githubv4 and it fails:

go: finding github.com/shurcooL/graphql latest
go: finding github.com/shurcooL/go latest
../../../go/pkg/mod/github.com/shurcoo!l/graphql@v0.0.0-20180223021221-8d3d310716de/graphql.go:10:2: module github.com/shurcooL/go@latest found (v0.0.0-20191216061654-b114cc39af9f), but does not contain package github.com/shurcooL/go/ctxhttp
dmitshur commented 4 years ago

What's your go env GOPROXY value? Are you using a private proxy?

v0.0.0-20180223021221-8d3d310716de is an old version of module github.com/shurcooL/graphql. The latest version no longer imports package github.com/shurcooL/go/ctxhttp, see https://github.com/shurcooL/graphql/commit/16b88644589aaa174a21ae55cac72a9f60d5d837 from 2018.

klauern commented 4 years ago

Yeah, it must be that. I unset the GOPROXY and it was able to download. I'm not sure we even had this proxy in place that long, though.