Skip to content

Commit 49f9a46

Browse files
committed
fix: update saphyr with proper octals handling
1 parent 662289a commit 49f9a46

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ clap_complete = "4.5"
5353
# Parsing, manifestification is implemented manually everywhere
5454
serde = "1.0.228"
5555
serde_json = "1.0.149"
56-
serde-saphyr = { version = "0.0.26", default-features = false, features = [
56+
serde-saphyr = { git = "https://github.com/CertainLach/serde-saphyr", branch = "fix/legacy-octal-handling", version = "0.0.26", default-features = false, features = [
5757
"deserialize",
5858
] }
5959

tests/golden/issue225.jsonnet

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
std.parseYaml(|||
2+
a: 0777
3+
b: 0o777
4+
c: 0
5+
|||)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
source: tests/tests/golden.rs
3+
expression: result
4+
input_file: tests/golden/issue225.jsonnet
5+
---
6+
{
7+
"a": 511,
8+
"b": 511,
9+
"c": 0
10+
}

0 commit comments

Comments
 (0)