1
1
mirror of https://github.com/wader/fq.git synced 2024-12-26 06:51:35 +03:00

Merge pull request #696 from wader/bump-gomod-BurntSushi/toml-1.3.2

Update gomod-BurntSushi/toml to 1.3.2 from 1.2.1
This commit is contained in:
Mattias Wadman 2023-07-06 18:51:24 +02:00 committed by GitHub
commit 62870e3ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 10 deletions

View File

@ -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
@ -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

2
go.mod
View File

@ -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

4
go.sum
View File

@ -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=