Skip to content

x/vulndb: build is broken #46088

@heschi

Description

@heschi

The repository appears to have been broken since its addition to the trybots. There is an outstanding change that claims to fix it, https://golang.org/cl/314669.

linux-amd64 at d9e068d2894ff2fce48a171212171bc3f394b023 building vulndb at e0c00fae09e687ec6febda47ae3bc7552fc7b988

testing in module mode; GOMOD=/workdir/gopath/src/golang.org/x/vulndb/go.mod

:: Running /workdir/go/bin/go with args ["/workdir/go/bin/go" "test" "-short" "golang.org/x/vulndb/..."] and env ["PATH=/workdir/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" "HOSTNAME=buildlet-linux-stretch-rnd679047" "DEBIAN_FRONTEND=noninteractive" "HOME=/root" "USER=root" "GO_STAGE0_NET_DELAY=100ms" "GO_STAGE0_DL_DELAY=100ms" "WORKDIR=/workdir" "GOROOT_BOOTSTRAP=/workdir/go1.4" "GO_BUILDER_NAME=linux-amd64" "GOROOT_BOOTSTRAP=/go1.4" "GO_DISABLE_OUTBOUND_NETWORK=1" "GOROOT=/workdir/go" "GOPATH=/workdir/gopath" "GOPROXY=http://10.240.0.58:30157" "TMPDIR=/workdir/tmp" "GOCACHE=/workdir/gocache"] in dir /workdir/gopath/src/golang.org/x/vulndb

go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading golang.org/x/mod v0.4.1
go: downloading github.com/google/go-cmp v0.5.4
go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
# golang.org/x/vulndb/osv [golang.org/x/vulndb/osv.test]
osv/json_test.go:18:3: cannot use []struct { Module string; Package string; Symbols []string; Versions []report.VersionRange }{...} (type []struct { Module string; Package string; Symbols []string; Versions []report.VersionRange }) as type []struct { Module string "yaml:\",omitempty\""; Package string "yaml:\",omitempty\""; Symbols []string "yaml:\",omitempty\""; Versions []report.VersionRange "yaml:\",omitempty\"" } in field value
osv/json_test.go:46:3: cannot use struct { PR string; Commit string; Context []string }{...} (type struct { PR string; Commit string; Context []string }) as type struct { PR string "yaml:\",omitempty\""; Commit string "yaml:\",omitempty\""; Context []string "yaml:\",omitempty\"" } in field value
ok  	golang.org/x/vulndb/client	0.015s
?   	golang.org/x/vulndb/cmd/gendb	[no test files]
?   	golang.org/x/vulndb/cmd/genhtml	[no test files]
?   	golang.org/x/vulndb/cmd/linter	[no test files]
?   	golang.org/x/vulndb/cmd/report2cve	[no test files]
FAIL	golang.org/x/vulndb/osv [build failed]
?   	golang.org/x/vulndb/report	[no test files]
FAIL

@FiloSottile @empijei

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.SoonThis needs action soon. (recent regressions, service outages, unusual time-sensitive situations)vulncheck or vulndbIssues for the x/vuln or x/vulndb repo

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions