Skip to content

Commit 93fcf81

Browse files
bump go-patch to require explicit keys
1 parent cc10702 commit 93fcf81

File tree

13 files changed

+137
-73
lines changed

13 files changed

+137
-73
lines changed

cmd/deploy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ var _ = Describe("DeployCmd", func() {
9898
opts.OpsFiles = []OpsFileArg{
9999
{
100100
Ops: patch.Ops([]patch.Op{
101-
patch.ReplaceOp{Path: patch.MustNewPointerFromString("/xyz"), Value: "val"},
101+
patch.ReplaceOp{Path: patch.MustNewPointerFromString("/xyz?"), Value: "val"},
102102
}),
103103
},
104104
}

cmd/release_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ func (m ReleaseManager) createAndUploadRelease(rel boshdir.ManifestRelease) (pat
9696
// equivalent to /releases/name=?/version
9797
Path: patch.NewPointer([]patch.Token{
9898
patch.RootToken{},
99-
patch.KeyToken{Key: "releases", Expected: true},
99+
patch.KeyToken{Key: "releases"},
100100
patch.MatchingIndexToken{Key: "name", Value: rel.Name},
101-
patch.KeyToken{Key: "version", Expected: true},
101+
patch.KeyToken{Key: "version"},
102102
}),
103103
Value: release.Version(),
104104
}

cmd/update_cloud_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var _ = Describe("UpdateCloudConfigCmd", func() {
6868
opts.OpsFiles = []OpsFileArg{
6969
{
7070
Ops: patch.Ops([]patch.Op{
71-
patch.ReplaceOp{Path: patch.MustNewPointerFromString("/xyz"), Value: "val"},
71+
patch.ReplaceOp{Path: patch.MustNewPointerFromString("/xyz?"), Value: "val"},
7272
}),
7373
},
7474
}

cmd/update_runtime_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var _ = Describe("UpdateRuntimeConfigCmd", func() {
7373
opts.OpsFiles = []OpsFileArg{
7474
{
7575
Ops: patch.Ops([]patch.Op{
76-
patch.ReplaceOp{Path: patch.MustNewPointerFromString("/xyz"), Value: "val"},
76+
patch.ReplaceOp{Path: patch.MustNewPointerFromString("/xyz?"), Value: "val"},
7777
}),
7878
},
7979
}

deps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ github.com/jmespath/go-jmespath:0b12d6b
2323
github.com/charlievieth/fs/...:1c3b3f1
2424
github.com/hashicorp/errwrap/...:7554cd9
2525
github.com/bmatcuk/doublestar/...:044df0a
26-
github.com/cppforlife/go-patch/patch:85bc9ad
26+
github.com/cppforlife/go-patch/patch:8542be6

vendor/github.com/cppforlife/go-patch/patch/integration_test.go

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cppforlife/go-patch/patch/pointer.go

Lines changed: 8 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cppforlife/go-patch/patch/pointer_test.go

Lines changed: 16 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cppforlife/go-patch/patch/remove_op.go

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cppforlife/go-patch/patch/remove_op_test.go

Lines changed: 27 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)