Skip to content

Commit

Permalink
Update gomod-BurntSushi/toml to 1.3.2 from 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bump authored and wader committed Jul 5, 2023
1 parent b40e0d7 commit 8e75dc9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
21 changes: 14 additions & 7 deletions format/toml/testdata/toml.fqtest
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,23 @@ $ fq . probe.toml
$ fq -rRs 'fromjson[] | (walk(if type == "array" then map(select(. != null)) end) | try (to_toml | ., from_toml) catch .), "----"' variants.json
to_toml cannot be applied to: null
----
toml: top-level values must be Go maps or structs
true
error at position 0x4: toml: line 0: unexpected EOF; expected key separator '='
----
toml: top-level values must be Go maps or structs
false
error at position 0x5: toml: line 0: unexpected EOF; expected key separator '='
----
toml: top-level values must be Go maps or structs
123
error at position 0x3: toml: line 0: unexpected EOF; expected key separator '='
----
toml: top-level values must be Go maps or structs
123.123
error at position 0x7: toml: line 0: unexpected EOF; expected key separator '='
----
toml: top-level values must be Go maps or structs
"string"
error at position 0x8: toml: line 0: unexpected EOF; expected key separator '='
----
toml: top-level values must be Go maps or structs
[1, 2, 3]
error at position 0x9: toml: line 1: expected '.' or ']' to end table name, but got ',' instead
----
array = [true, false, 1.2, "string", [1.2, 3], {a = 1}]
"escape \\\"" = 456
Expand Down Expand Up @@ -60,7 +66,8 @@ true = true
"white space": 123
}
----
toml: top-level values must be Go maps or structs
[]
error at position 0x2: toml: line 1: unexpected end of table name (table names cannot be empty)
----

error at position 0x0: EOF
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
// bump: gomod-BurntSushi/toml /github\.com\/BurntSushi\/toml v(.*)/ https://github.com/BurntSushi/toml.git|^1
// bump: gomod-BurntSushi/toml command go get -d github.com/BurntSushi/toml@v$LATEST && go mod tidy
// bump: gomod-BurntSushi/toml link "Source diff $CURRENT..$LATEST" https://github.com/BurntSushi/toml/compare/v$CURRENT..v$LATEST
github.com/BurntSushi/toml v1.2.1
github.com/BurntSushi/toml v1.3.2

// bump: gomod-creasty-defaults /github\.com\/creasty\/defaults v(.*)/ https://github.com/creasty/defaults.git|^1
// bump: gomod-creasty-defaults command go get -d github.com/creasty/defaults@v$LATEST && go mod tidy
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8=
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/creasty/defaults v1.7.0 h1:eNdqZvc5B509z18lD8yc212CAqJNvfT1Jq6L8WowdBA=
github.com/creasty/defaults v1.7.0/go.mod h1:iGzKe6pbEHnpMPtfDXZEr0NVxWnPTjb1bbDy08fPzYM=
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
Expand Down

0 comments on commit 8e75dc9

Please sign in to comment.