Skip to content

Commit 777378b

Browse files
tatianabgopherbot
authored andcommitted
Revert "internal/database: bring back full db validation"
This reverts commit 99d9182. Reason for revert: This is causing deploy to fail. Rolling back while investigating. Change-Id: If4fa3c1fb8eed1f2920d0fe27ec7373a26ee990c Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/475337 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Tatiana Bradley <[email protected]> Auto-Submit: Tatiana Bradley <[email protected]> Reviewed-by: Julie Qiu <[email protected]> Reviewed-by: Tatiana Bradley <[email protected]>
1 parent ed0fd57 commit 777378b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

internal/database/validate.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package database
66

77
import (
88
"fmt"
9+
"path/filepath"
910

1011
"golang.org/x/vuln/osv"
1112
"golang.org/x/vulndb/internal/derrors"
@@ -22,7 +23,8 @@ func Validate(newPath, oldPath string) (err error) {
2223
return err
2324
}
2425

25-
old, err := Load(oldPath)
26+
// TODO(tatianabradley): Change to Load after first deploy.
27+
old, err := RawLoad(filepath.Join(oldPath, idDir))
2628
if err != nil {
2729
return err
2830
}

internal/database/validate_test.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ func TestValidate(t *testing.T) {
4646
old: small,
4747
new: invalid,
4848
},
49-
{
50-
name: "invalid old db",
51-
old: invalid,
52-
new: big,
53-
},
49+
// TODO(tatianabradley): test invalid old db after first deploy.
5450
}
5551
for _, test := range failTests {
5652
t.Run(test.name, func(t *testing.T) {

0 commit comments

Comments
 (0)