govpp: go.fd.io/govpp/extras cannot be imported

extras directory is declared as its own module: https://github.com/FDio/govpp/blob/2155ba39d4353b5d5e36473edfb2268be7b5d9c8/extras/go.mod#L1

However, the HTTP server at go.fd.io/govpp/extras is not returning the necessary <meta name="go-import"> tag, so that the module cannot be imported.

$ go get go.fd.io/govpp/extras@latest
go: module go.fd.io/govpp@latest found (v0.7.0), but does not contain package go.fd.io/govpp/extras

⚠️ Please, read the following comment with update: ➡️ https://github.com/FDio/govpp/issues/111#issuecomment-1487424368

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

Setting the version does retrieve the module, but there’s a retracted warning.

But, only govpp main module has retracted version. The extras does not. I believe this is precisely because of the invalid cached info in the GoProxy I described above.

Please try running:

GOPROXY=direct go get go.fd.io/govpp/extras@v0.1.0

This should work now.

➤ go mod download -json go.fd.io/govpp/extras@latest
{
    "Path": "go.fd.io/govpp/extras",
    "Version": "v0.7.0",
    "Query": "latest",
    "Info": "/home/ondrej/go/pkg/mod/cache/download/go.fd.io/govpp/extras/@v/v0.7.0.info",
    "GoMod": "/home/ondrej/go/pkg/mod/cache/download/go.fd.io/govpp/extras/@v/v0.7.0.mod",
    "Zip": "/home/ondrej/go/pkg/mod/cache/download/go.fd.io/govpp/extras/@v/v0.7.0.zip",
    "Dir": "/home/ondrej/go/pkg/mod/go.fd.io/govpp/extras@v0.7.0",
    "Sum": "h1:bAokcUUDzIUCnhtUmoOug+QuWZI3Erqe56J1RfBLWRc=",
    "GoModSum": "h1:VxUPq8HGQH6/9IL9saMURL3UcHsUuN8XmETuao5HA7o=",
    "Origin": {
        "VCS": "git",
        "URL": "https://github.com/FDio/govpp",
        "Ref": "refs/tags/v0.7.0",
        "Hash": "2155ba39d4353b5d5e36473edfb2268be7b5d9c8"
    }
} 

EDIT: actually, this is most likely incorrect, see next comment