mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	vendor: Update github.com/evanphx/json-patch
Updates github.com/evanphx/json-patch dependency to fix tests against empty objects/arrays. Includes fix from evanphx/json-patch#50
This commit is contained in:
		
							
								
								
									
										2
									
								
								Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							@@ -1212,7 +1212,7 @@
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/evanphx/json-patch",
 | 
			
		||||
			"Rev": "944e07253867aacae43c04b2e6a239005443f33a"
 | 
			
		||||
			"Rev": "ed7cfbae1fffc071f71e068df27bf4f0521402d8"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/exponent-io/jsonpath",
 | 
			
		||||
 
 | 
			
		||||
@@ -372,7 +372,7 @@
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/evanphx/json-patch",
 | 
			
		||||
			"Rev": "944e07253867aacae43c04b2e6a239005443f33a"
 | 
			
		||||
			"Rev": "ed7cfbae1fffc071f71e068df27bf4f0521402d8"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/ghodss/yaml",
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/evanphx/json-patch",
 | 
			
		||||
			"Rev": "944e07253867aacae43c04b2e6a239005443f33a"
 | 
			
		||||
			"Rev": "ed7cfbae1fffc071f71e068df27bf4f0521402d8"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/ghodss/yaml",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								staging/src/k8s.io/apiserver/Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								staging/src/k8s.io/apiserver/Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							@@ -372,7 +372,7 @@
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/evanphx/json-patch",
 | 
			
		||||
			"Rev": "944e07253867aacae43c04b2e6a239005443f33a"
 | 
			
		||||
			"Rev": "ed7cfbae1fffc071f71e068df27bf4f0521402d8"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/ghodss/yaml",
 | 
			
		||||
 
 | 
			
		||||
@@ -112,7 +112,7 @@
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/evanphx/json-patch",
 | 
			
		||||
			"Rev": "944e07253867aacae43c04b2e6a239005443f33a"
 | 
			
		||||
			"Rev": "ed7cfbae1fffc071f71e068df27bf4f0521402d8"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/ghodss/yaml",
 | 
			
		||||
 
 | 
			
		||||
@@ -104,7 +104,7 @@
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/evanphx/json-patch",
 | 
			
		||||
			"Rev": "944e07253867aacae43c04b2e6a239005443f33a"
 | 
			
		||||
			"Rev": "ed7cfbae1fffc071f71e068df27bf4f0521402d8"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/ghodss/yaml",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										20
									
								
								vendor/github.com/evanphx/json-patch/patch.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								vendor/github.com/evanphx/json-patch/patch.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -66,6 +66,10 @@ func (n *lazyNode) intoDoc() (*partialDoc, error) {
 | 
			
		||||
		return &n.doc, nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if n.raw == nil {
 | 
			
		||||
		return nil, fmt.Errorf("Unable to unmarshal nil pointer as partial document")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	err := json.Unmarshal(*n.raw, &n.doc)
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
@@ -81,6 +85,10 @@ func (n *lazyNode) intoAry() (*partialArray, error) {
 | 
			
		||||
		return &n.ary, nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if n.raw == nil {
 | 
			
		||||
		return nil, fmt.Errorf("Unable to unmarshal nil pointer as partial array")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	err := json.Unmarshal(*n.raw, &n.ary)
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
@@ -94,6 +102,10 @@ func (n *lazyNode) intoAry() (*partialArray, error) {
 | 
			
		||||
func (n *lazyNode) compact() []byte {
 | 
			
		||||
	buf := &bytes.Buffer{}
 | 
			
		||||
 | 
			
		||||
	if n.raw == nil {
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	err := json.Compact(buf, *n.raw)
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
@@ -104,6 +116,10 @@ func (n *lazyNode) compact() []byte {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (n *lazyNode) tryDoc() bool {
 | 
			
		||||
	if n.raw == nil {
 | 
			
		||||
		return false
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	err := json.Unmarshal(*n.raw, &n.doc)
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
@@ -115,6 +131,10 @@ func (n *lazyNode) tryDoc() bool {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (n *lazyNode) tryAry() bool {
 | 
			
		||||
	if n.raw == nil {
 | 
			
		||||
		return false
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	err := json.Unmarshal(*n.raw, &n.ary)
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user