Browse Source

upgrade yaml

tags/v2.7.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
a7db4a669e

+ 1
- 1
go.mod View File

@@ -21,7 +21,7 @@ require (
21 21
 	github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208
22 22
 	golang.org/x/crypto v0.0.0-20210415154028-4f45737414dc
23 23
 	golang.org/x/text v0.3.6
24
-	gopkg.in/yaml.v2 v2.3.0
24
+	gopkg.in/yaml.v2 v2.4.0
25 25
 )
26 26
 
27 27
 replace github.com/gorilla/websocket => github.com/oragono/websocket v1.4.2-oragono1

+ 2
- 0
go.sum View File

@@ -145,3 +145,5 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
145 145
 gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
146 146
 gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
147 147
 gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
148
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
149
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=

+ 1
- 0
vendor/gopkg.in/yaml.v2/.travis.yml View File

@@ -11,6 +11,7 @@ go:
11 11
     - "1.11.x"
12 12
     - "1.12.x"
13 13
     - "1.13.x"
14
+    - "1.14.x"
14 15
     - "tip"
15 16
 
16 17
 go_import_path: gopkg.in/yaml.v2

+ 5
- 1
vendor/gopkg.in/yaml.v2/apic.go View File

@@ -79,6 +79,8 @@ func yaml_parser_set_encoding(parser *yaml_parser_t, encoding yaml_encoding_t) {
79 79
 	parser.encoding = encoding
80 80
 }
81 81
 
82
+var disableLineWrapping = false
83
+
82 84
 // Create a new emitter object.
83 85
 func yaml_emitter_initialize(emitter *yaml_emitter_t) {
84 86
 	*emitter = yaml_emitter_t{
@@ -86,7 +88,9 @@ func yaml_emitter_initialize(emitter *yaml_emitter_t) {
86 88
 		raw_buffer: make([]byte, 0, output_raw_buffer_size),
87 89
 		states:     make([]yaml_emitter_state_t, 0, initial_stack_size),
88 90
 		events:     make([]yaml_event_t, 0, initial_queue_size),
89
-		best_width: -1,
91
+	}
92
+	if disableLineWrapping {
93
+		emitter.best_width = -1
90 94
 	}
91 95
 }
92 96
 

+ 4
- 4
vendor/gopkg.in/yaml.v2/go.mod View File

@@ -1,5 +1,5 @@
1
-module "gopkg.in/yaml.v2"
1
+module gopkg.in/yaml.v2
2 2
 
3
-require (
4
-	"gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405
5
-)
3
+go 1.15
4
+
5
+require gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405

+ 13
- 1
vendor/gopkg.in/yaml.v2/yaml.go View File

@@ -175,7 +175,7 @@ func unmarshal(in []byte, out interface{}, strict bool) (err error) {
175 175
 //                  Zero valued structs will be omitted if all their public
176 176
 //                  fields are zero, unless they implement an IsZero
177 177
 //                  method (see the IsZeroer interface type), in which
178
-//                  case the field will be included if that method returns true.
178
+//                  case the field will be excluded if IsZero returns true.
179 179
 //
180 180
 //     flow         Marshal using a flow style (useful for structs,
181 181
 //                  sequences and maps).
@@ -464,3 +464,15 @@ func isZero(v reflect.Value) bool {
464 464
 	}
465 465
 	return false
466 466
 }
467
+
468
+// FutureLineWrap globally disables line wrapping when encoding long strings.
469
+// This is a temporary and thus deprecated method introduced to faciliate
470
+// migration towards v3, which offers more control of line lengths on
471
+// individual encodings, and has a default matching the behavior introduced
472
+// by this function.
473
+//
474
+// The default formatting of v2 was erroneously changed in v2.3.0 and reverted
475
+// in v2.4.0, at which point this function was introduced to help migration.
476
+func FutureLineWrap() {
477
+	disableLineWrapping = true
478
+}

+ 1
- 1
vendor/modules.txt View File

@@ -92,7 +92,7 @@ golang.org/x/text/transform
92 92
 golang.org/x/text/unicode/bidi
93 93
 golang.org/x/text/unicode/norm
94 94
 golang.org/x/text/width
95
-# gopkg.in/yaml.v2 v2.3.0
95
+# gopkg.in/yaml.v2 v2.4.0
96 96
 ## explicit
97 97
 gopkg.in/yaml.v2
98 98
 # github.com/gorilla/websocket => github.com/oragono/websocket v1.4.2-oragono1

Loading…
Cancel
Save