1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Use yaml.v3 instead of modified yaml.v2 for handling YAML files (#791)

* Add another test (that currently fails).

* First shot at using yaml.v3 for reading YAML files with comments.

* Allow parsing multi-document YAML files.

* Use Decoder to parse multi-part documents.

* Use yaml.v3 for config and audit.

* First step of serializing YAML using yaml.v3.

* Always serialize with yaml.v3.

* Remove debug prints.

* Remove traces of github.com/mozilla-services/yaml.

* Improve serialization of documents consisting only of comments.

* Improve handling of some empty documents.

* Adjust to latest changes in go-yaml/yaml#684.

* Bump yaml.v3 version, temporarily disable failing tests.

* Run go mod tidy.

* Fix CI.
This commit is contained in:
Felix Fontein
2021-02-21 18:48:23 +01:00
committed by GitHub
parent 24636e4f23
commit e2d6d0fdc3
6 changed files with 363 additions and 107 deletions

View File

@@ -10,7 +10,7 @@ import (
"path"
"regexp"
"github.com/mozilla-services/yaml"
"gopkg.in/yaml.v3"
"github.com/sirupsen/logrus"
"go.mozilla.org/sops/v3"
"go.mozilla.org/sops/v3/age"