Skip to content

Unknown revision of github.com/Venafi/vcert/v4 #5953

@mamachanko

Description

@mamachanko

When requiring github.com/cert-manager/cert-manager v1.11.1 and listing modules, it blows up with

go: github.com/Venafi/vcert/v4@v4.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000

Describe the bug:
It's is not a bug per se, but an inconvenience related to dependency inspection.

Expected behaviour:
It does not blow up 😄

Steps to reproduce the bug:

❯ go version
go version go1.20.3 darwin/amd64

❯ cat --style plain go.mod
module debug.mamachanko.io
​
go 1.20
​
require github.com/cert-manager/cert-manager v1.11.1
​
require (
    github.com/go-logr/logr v1.2.3 // indirect
    github.com/gogo/protobuf v1.3.2 // indirect
    github.com/google/gofuzz v1.2.0 // indirect
    github.com/json-iterator/go v1.1.12 // indirect
    github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
    github.com/modern-go/reflect2 v1.0.2 // indirect
    golang.org/x/net v0.7.0 // indirect
    golang.org/x/text v0.7.0 // indirect
    gopkg.in/inf.v0 v0.9.1 // indirect
    gopkg.in/yaml.v2 v2.4.0 // indirect
    k8s.io/api v0.26.0 // indirect
    k8s.io/apiextensions-apiserver v0.26.0 // indirect
    k8s.io/apimachinery v0.26.0 // indirect
    k8s.io/klog/v2 v2.80.1 // indirect
    k8s.io/utils v0.0.0-20221128185143-99ec85e7a448 // indirect
    sigs.k8s.io/gateway-api v0.6.0 // indirect
    sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
    sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
)
​
❯ cat --style plain main.go
package main
​
import (
    "fmt"
​
    v1 "github.com/cert-manager/cert-manager/pkg/apis/certmanager/v1"
)
​
func main() {
  c := v1.Certificate{}
  fmt.Println(c)
}
​
❯ cat --style plain go.mod ^C
​
❯ go run .
{{ } {      0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []} {<nil>   nil nil [] [] [] []  <nil> <nil> {  } false [] <nil> <nil> <nil> []} {[] <nil> <nil> <nil> <nil> <nil> <nil> <nil>}}
​
❯ go list -modfile=go.mod -m all
go: github.com/Venafi/vcert/v4@v4.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000

/kind bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions