go-patch icon indicating copy to clipboard operation
go-patch copied to clipboard

Results 14 go-patch issues
Sort by recently updated
recently updated
newest added

Hello, getting an error (the title) when trying to replace (add) what I think is an array element. Here is the manifest block I'm trying to match on: ``` -...

Hello Dmitriy, Inspired by an improvement made by another pivot Andrew Garner @abg last summer (see [this commit](https://github.com/abg/go-patch/commit/c532aa7a7c79946d49f2ab8808f4e032a22b575b)), I've added a `go.mod` file in order to use go modules. Here...

Fixes #7. Ginkgo tests are passing. Note: the “[Creating Ops Files](https://github.com/cloudfoundry/docs-bosh/blob/master/content/cli-ops-files.md#escaping)” documentation will need to be updated. Cheers

It is sometimes useful to conditionally execute bosh operators (in addition to the `? refer to hash keys that may or may not exist`) depending on the presence of key/value...

As a [BOSH deployment framework](https://github.com/gstackio/gstack-bosh-environment) author, I'm concerned about this library not being an extension of [RFC 6902 patches](https://tools.ietf.org/html/rfc6902) and [RFC 6901 pointers](https://tools.ietf.org/html/rfc6901). The only incompatibility right now, is the...

@cppforlife - here is an alternate way of implementing wildcard support. The first commit restructures `replace_op.go` to use a stack instead of a loop - while it touches a lot...

Based on suggestions in #5, this implements a very simple copy operation by combining existing find and replace operations. We can talk about adding more options, like sub-operations to be...

I was working with a BOSH manifest that had numerous incorrect keys specified, e.g.: ``` - name: foo BADtype: password ``` and wanted to change `BADtype` to `type` using an...

This is more actually a question but I was wondering why go-patch is only a library and doesn't provide a simple cli to do interpolation as we can do on...

go-patch introduces `?` as a new, non-rfc6901 special character, but there's not an escape sequence defined. Preferences? Since non-standard, start in descending order; `~9`? https://github.com/cppforlife/go-patch/blob/37a72c69d59809d4d5aa0b2aff033e74b8014390/patch/pointer.go#L10-L11