зеркало из https://github.com/golang/vulndb.git
all: move reports/ and excluded/ to data/ directory
Put the database (active and excluded reports) under a common directory prefix. This simplifies applying separate licenses to the code and the database. Change-Id: Icb2a987b96dca18a8fb064dfd9c6d67d6620e2e3 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/423394 Reviewed-by: Julie Qiu <julieqiu@google.com>
This commit is contained in:
Родитель
46c14cb4fa
Коммит
ba94ff5643
|
@ -36,8 +36,8 @@ func TestChecksBash(t *testing.T) {
|
|||
}
|
||||
|
||||
const (
|
||||
reportsDir = "reports"
|
||||
excludedDir = "excluded"
|
||||
reportsDir = "data/reports"
|
||||
excludedDir = "data/excluded"
|
||||
)
|
||||
|
||||
func TestLintReports(t *testing.T) {
|
||||
|
|
|
@ -107,7 +107,7 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
commitDates, err := gitrepo.AllCommitDates(repo, gitrepo.MainReference, "reports/")
|
||||
commitDates, err := gitrepo.AllCommitDates(repo, gitrepo.MainReference, "data/reports/")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ func create(ctx context.Context, issueNumber int, ghToken, issueRepo, repoPath s
|
|||
if !iss.CreatedAt.IsZero() {
|
||||
year = iss.CreatedAt.Year()
|
||||
}
|
||||
filename := fmt.Sprintf("reports/GO-%04d-%04d.yaml", year, issueNumber)
|
||||
filename := fmt.Sprintf("data/reports/GO-%04d-%04d.yaml", year, issueNumber)
|
||||
if err := r.Write(filename); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче