Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
internal/encoding/yaml: fix go1.12 breakage
Browse files Browse the repository at this point in the history
The yaml.v3 package does not seem to support
0oxxx-stly octal numbers.

Change-Id: I8b37cd35139c01d415f5ed3d57bd957bfc342e56
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5089
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
  • Loading branch information
mpvl committed Feb 28, 2020
1 parent 01fbfa1 commit 40cc12c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions internal/encoding/yaml/encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ b:
int: 1K
bin: 0b11
hex: 0x11
oct: 0o11
dec: .3
dat: '\x80'
nil: null
Expand All @@ -87,7 +86,6 @@ str: str
int: 1000
bin: 0b11
hex: 0x11
oct: 0o11
dec: .3
dat: !!binary gA==
nil: null
Expand Down Expand Up @@ -148,13 +146,13 @@ f4: {} # line 4
// TODO: support this at some point
name: "embed",
in: `
// octal
0o755 // line
// hex
0xabc // line
// trail
`,
out: `
# octal
0o755 # line
# hex
0xabc # line
# trail
`,
}, {
Expand Down

0 comments on commit 40cc12c

Please sign in to comment.