commit | b63dc7c94ff0b792970461bbf109d661662492cc | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Jan 20 09:40:07 2022 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Jan 20 17:31:41 2022 +0000 |
tree | 4dd41fd1074a9c2cefcd0b176ac299e1e4ca8c27 | |
parent | 566ba415492671960fac79e0f55297ed9f987395 [diff] |
internal/report: upgrade to yaml.v3 - Upgrade to v3 of the yaml package. It allows setting an indent for encoding. - Add Report.Write and Report.ToString methods to internal/report, so all formatting is controlled by that package. Update other code to use them. - Add tests to internal/report. Note that the output of yaml encoding, even with an indent, does not match the format of most of our reports. First, the encoding uses single quotes instead of double quotes. Second, an indent of 4 puts two spaces before the "-" of a list, but four spaces before other indented values, like key-value pairs and indented text blocks (values that start with "|"). The existing reports don't match that format. Change-Id: Ibfdd9c6bcea502e238500bf79164a55775d5b065 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/379775 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com>
This repository contains the reports for the Go Vulnerability Database.
If you are interested accessing data from the Go Vulnerability Database, see x/vuln for information. This repository is only used for adding new vulnerabilities.
We are not accepting new vulnerability reports at this time. We will update this README.md once we are ready to receive reports.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Database entries are distributed under the terms of the CC-BY 4.0 license. See x/vuln for information on how to access these entries.