Skip to content

Commit

Permalink
fix marshal of unicode characters in candiedyaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Jul 22, 2020
1 parent 15eab47 commit 7ba0a83
Show file tree
Hide file tree
Showing 71 changed files with 29 additions and 3,118 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
# unused-packages = true


[[constraint]]
name = "github.com/cloudfoundry-incubator/candiedyaml"
revision = "a41693b7b7afb422c7ecb1028458ab27da047bbb"
#[[constraint]]
# name = "github.com/cloudfoundry-incubator/candiedyaml"
# revision = "a41693b7b7afb422c7ecb1028458ab27da047bbb"

[[constraint]]
name = "github.com/spf13/cobra"
Expand All @@ -54,7 +54,7 @@
go-tests = true
unused-packages = true

[[prune.project]]
name = "github.com/cloudfoundry-incubator/candiedyaml"
go-tests = false
unused-packages = false
# [[prune.project]]
# name = "github.com/cloudfoundry-incubator/candiedyaml"
# go-tests = false
# unused-packages = false
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ spiff_darwin_amd64.zip: ensure
ensure:
dep ensure
# restore patched version of candiedyaml/decode.go
git checkout -- vendor/github.com/cloudfoundry-incubator/candiedyaml/decode.go
#git checkout -- vendor/github.com/cloudfoundry-incubator/candiedyaml/decode.go
#git checkout -- vendor/github.com/cloudfoundry-incubator/candiedyaml/emitter.go
2 changes: 1 addition & 1 deletion cmd/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/spf13/cobra"

"github.com/cloudfoundry-incubator/candiedyaml"
"github.com/mandelsoft/spiff/compare"
"github.com/mandelsoft/spiff/legacy/candiedyaml"
"github.com/mandelsoft/spiff/yaml"
)

Expand Down
5 changes: 3 additions & 2 deletions cmd/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import (
"path"
"strings"

"github.com/cloudfoundry-incubator/candiedyaml"
"github.com/spf13/cobra"

"github.com/mandelsoft/spiff/debug"
"github.com/mandelsoft/spiff/dynaml"
"github.com/mandelsoft/spiff/flow"
"github.com/mandelsoft/spiff/legacy/candiedyaml"
"github.com/mandelsoft/spiff/yaml"
"github.com/spf13/cobra"
)

var asJSON bool
Expand Down
2 changes: 1 addition & 1 deletion dynaml/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strconv"
"strings"

"github.com/cloudfoundry-incubator/candiedyaml"
"github.com/mandelsoft/spiff/legacy/candiedyaml"

"github.com/mandelsoft/spiff/debug"
"github.com/mandelsoft/spiff/yaml"
Expand Down
2 changes: 1 addition & 1 deletion dynaml/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/mandelsoft/spiff/yaml"

"github.com/cloudfoundry-incubator/candiedyaml"
"github.com/mandelsoft/spiff/legacy/candiedyaml"
)

func func_format(arguments []interface{}, binding Binding) (interface{}, EvaluationInfo, bool) {
Expand Down
5 changes: 3 additions & 2 deletions dynaml/json.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package dynaml

import (
"github.com/cloudfoundry-incubator/candiedyaml"
"github.com/mandelsoft/spiff/yaml"
"strings"

"github.com/mandelsoft/spiff/legacy/candiedyaml"
"github.com/mandelsoft/spiff/yaml"
)

func func_as_json(arguments []interface{}, binding Binding) (interface{}, EvaluationInfo, bool) {
Expand Down
3 changes: 2 additions & 1 deletion dynaml/passwd/passwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package passwd

import (
"fmt"
"github.com/cloudfoundry-incubator/candiedyaml"

. "github.com/mandelsoft/spiff/dynaml"
"github.com/mandelsoft/spiff/legacy/candiedyaml"
)

type Encoding interface {
Expand Down
1 change: 1 addition & 0 deletions legacy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.coverprofile
2 changes: 1 addition & 1 deletion legacy/candiedyaml/emitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1876,7 +1876,7 @@ func yaml_emitter_write_double_quoted_scalar(emitter *yaml_emitter_t, value []by
for k := (w - 1) * 4; k >= 0; k -= 4 {
digit := byte((v >> uint(k)) & 0x0F)
c := digit + '0'
if c > 9 {
if digit > 9 {
c = digit + 'A' - 10
}
if !put(emitter, c) {
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7ba0a83

Please sign in to comment.