Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump serde_yaml to latest to solve security issues and error test cases #623

Merged
merged 3 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.0
0.5.1
90 changes: 50 additions & 40 deletions kclvm/Cargo.lock

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

2 changes: 1 addition & 1 deletion kclvm/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tempfile = "3.5.0"
prost = "0.11.8"
prost-types = "0.11.8"
serde_json = "1.0"
serde_yaml = "0.9.2"
serde_yaml = "0.9.25"
anyhow = "1.0.70"
serde = { version = "1", features = ["derive"] }
indexmap = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion kclvm/config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
serde = { version = "1", features = ["derive"] }
serde_yaml = "0.8.7"
serde_yaml = "0.9.25"
serde_json = "1.0"
indexmap = "1.0"
ahash = "0.7.2"
Expand Down
20 changes: 10 additions & 10 deletions kclvm/runner/src/custom_manifests_data/list.stdout.golden
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
k1:
- 1
- 2
- 1
- 2
k2:
- 3
- 4
- 3
- 4
---
k3:
- 5
- 6
- 5
- 6
k4:
- 7
- 8
- 7
- 8
---
k5:
- 9
- 10
- 9
- 10
2 changes: 1 addition & 1 deletion kclvm/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
kclvm_runtime_internal_macros = { path = "./internal_macros" }
serde_json = {package = "serde_json", version = "= 1.0.86"}
serde = { version = "1", features = ["derive"] }
serde_yaml = "0.8.23"
serde_yaml = "0.9.25"

base64 = "0.13.0"
libc = "0.2.112"
Expand Down
4 changes: 2 additions & 2 deletions kclvm/runtime/src/manifests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn test_kclvm_manifests_yaml_stream() {
YamlEncodeOptions::default(),
),
(
"a:\n - 1\n - 2\n - 3\nb: s\n",
"a:\n- 1\n- 2\n- 3\nb: s\n",
ValueRef::list(Some(&[&ValueRef::dict(Some(&[
("a", &ValueRef::list_int(&[1, 2, 3])),
("b", &ValueRef::str("s")),
Expand All @@ -36,7 +36,7 @@ fn test_kclvm_manifests_yaml_stream() {
},
),
(
"a: 1\nb: ~\n",
"a: 1\nb: null\n",
ValueRef::list(Some(&[&ValueRef::dict(Some(&[
("a", &ValueRef::int(1)),
("b", &ValueRef::none()),
Expand Down
4 changes: 2 additions & 2 deletions kclvm/runtime/src/manifests/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mod test_manifests_yaml {
YamlEncodeOptions::default(),
),
(
"a:\n - 1\n - 2\n - 3\nb: s\n",
"a:\n- 1\n- 2\n- 3\nb: s\n",
ValueRef::list(Some(&[&ValueRef::dict(Some(&[
("a", &ValueRef::list_int(&[1, 2, 3])),
("b", &ValueRef::str("s")),
Expand All @@ -58,7 +58,7 @@ mod test_manifests_yaml {
},
),
(
"a: 1\nb: ~\n",
"a: 1\nb: null\n",
ValueRef::list(Some(&[&ValueRef::dict(Some(&[
("a", &ValueRef::int(1)),
("b", &ValueRef::none()),
Expand Down
Loading
Loading