mirror of
https://github.com/coredns/coredns.git
synced 2026-06-14 05:00:12 -04:00
Update apache/thrift to 0.11.0 and remove pinning (#1317)
The `apache/thrift` recently released a new version of `0.11.0` several days ago. This release is compatible with other packages and as such, there is no need to pinning the `apache/thrift` to `master` anymore in Gopkg.toml. This fix removes the pinning of `apache/thrift` in Gopkg.toml, and updates all dependencies of coredns. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
2
vendor/gopkg.in/yaml.v2/decode.go
generated
vendored
2
vendor/gopkg.in/yaml.v2/decode.go
generated
vendored
@@ -251,7 +251,7 @@ func (d *decoder) callUnmarshaler(n *node, u Unmarshaler) (good bool) {
|
||||
//
|
||||
// If n holds a null value, prepare returns before doing anything.
|
||||
func (d *decoder) prepare(n *node, out reflect.Value) (newout reflect.Value, unmarshaled, good bool) {
|
||||
if n.tag == yaml_NULL_TAG || n.kind == scalarNode && n.tag == "" && (n.value == "null" || n.value == "" && n.implicit) {
|
||||
if n.tag == yaml_NULL_TAG || n.kind == scalarNode && n.tag == "" && (n.value == "null" || n.value == "~" || n.value == "" && n.implicit) {
|
||||
return out, false, false
|
||||
}
|
||||
again := true
|
||||
|
||||
15
vendor/gopkg.in/yaml.v2/decode_test.go
generated
vendored
15
vendor/gopkg.in/yaml.v2/decode_test.go
generated
vendored
@@ -438,6 +438,9 @@ var unmarshalTests = []struct {
|
||||
{
|
||||
"foo: ''",
|
||||
map[string]*string{"foo": new(string)},
|
||||
}, {
|
||||
"foo: null",
|
||||
map[string]*string{"foo": nil},
|
||||
}, {
|
||||
"foo: null",
|
||||
map[string]string{"foo": ""},
|
||||
@@ -446,6 +449,18 @@ var unmarshalTests = []struct {
|
||||
map[string]interface{}{"foo": nil},
|
||||
},
|
||||
|
||||
// Support for ~
|
||||
{
|
||||
"foo: ~",
|
||||
map[string]*string{"foo": nil},
|
||||
}, {
|
||||
"foo: ~",
|
||||
map[string]string{"foo": ""},
|
||||
}, {
|
||||
"foo: ~",
|
||||
map[string]interface{}{"foo": nil},
|
||||
},
|
||||
|
||||
// Ignored field
|
||||
{
|
||||
"a: 1\nb: 2\n",
|
||||
|
||||
2
vendor/gopkg.in/yaml.v2/yaml.go
generated
vendored
2
vendor/gopkg.in/yaml.v2/yaml.go
generated
vendored
@@ -140,7 +140,7 @@ func unmarshal(in []byte, out interface{}, strict bool) (err error) {
|
||||
// For example:
|
||||
//
|
||||
// type T struct {
|
||||
// F int "a,omitempty"
|
||||
// F int `yaml:"a,omitempty"`
|
||||
// B int
|
||||
// }
|
||||
// yaml.Marshal(&T{B: 2}) // Returns "b: 2\n"
|
||||
|
||||
Reference in New Issue
Block a user