Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
3ddcb74a
Commit
3ddcb74a
authored
5 years ago
by
Lang Martin
Browse files
Options
Download
Email Patches
Plain Diff
config parse update hcl with support for decoding bool to string
parent
0606f50f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vendor/github.com/hashicorp/hcl/decoder.go
+1
-1
vendor/github.com/hashicorp/hcl/decoder.go
vendor/vendor.json
+1
-1
vendor/vendor.json
with
2 additions
and
2 deletions
+2
-2
vendor/github.com/hashicorp/hcl/decoder.go
+
1
-
1
View file @
3ddcb74a
...
...
@@ -535,7 +535,7 @@ func (d *decoder) decodeString(name string, node ast.Node, result reflect.Value)
switch
n
:=
node
.
(
type
)
{
case
*
ast
.
LiteralType
:
switch
n
.
Token
.
Type
{
case
token
.
NUMBER
:
case
token
.
NUMBER
,
token
.
FLOAT
,
token
.
BOOL
:
result
.
Set
(
reflect
.
ValueOf
(
n
.
Token
.
Text
)
.
Convert
(
result
.
Type
()))
return
nil
case
token
.
STRING
,
token
.
HEREDOC
:
...
...
This diff is collapsed.
Click to expand it.
vendor/vendor.json
+
1
-
1
View file @
3ddcb74a
...
...
@@ -208,7 +208,7 @@
{
"path"
:
"github.com/hashicorp/go-version"
,
"checksumSHA1"
:
"r0pj5dMHCghpaQZ3f1BRGoKiSWw="
,
"revision"
:
"b5a281d3160aa11950a6182bd9a9dc2cb1e02d50"
,
"revisionTime"
:
"2018-08-24T00:43:55Z"
},
{
"path"
:
"github.com/hashicorp/golang-lru"
,
"checksumSHA1"
:
"d9PxF1XQGLMJZRct2R8qVM/eYlE="
,
"revision"
:
"a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4"
,
"revisionTime"
:
"2016-02-07T21:47:19Z"
},
{
"path"
:
"github.com/hashicorp/golang-lru/simplelru"
,
"checksumSHA1"
:
"2nOpYjx8Sn57bqlZq17yM4YJuM4="
,
"revision"
:
"a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4"
},
{
"path"
:
"github.com/hashicorp/hcl"
,
"checksumSHA1"
:
"
bPPNuq11pA/YSJzwxS0163WnhCo="
,
"revision"
:
"99e2f22d1c94b272184d97dd9d252866409100ab
"
,
"revisionTime"
:
"2019-0
4-30T13:52
:2
3
Z"
},
{
"path"
:
"github.com/hashicorp/hcl"
,
"checksumSHA1"
:
"
vgGv8zuy7q8c5LBAFO1fnnQRRgE="
,
"revision"
:
"1804807358d86424faacbb42f50f0c04303cef11
"
,
"revisionTime"
:
"2019-0
6-10T16:16
:2
7
Z"
},
{
"path"
:
"github.com/hashicorp/hcl/hcl/ast"
,
"checksumSHA1"
:
"XQmjDva9JCGGkIecOgwtBEMCJhU="
,
"revision"
:
"6e968a3fcdcbab092f5307fd0d85479d5af1e4dc"
,
"revisionTime"
:
"2016-11-01T18:00:25Z"
},
{
"path"
:
"github.com/hashicorp/hcl/hcl/parser"
,
"checksumSHA1"
:
"croNloscHsjX87X+4/cKOURf1EY="
,
"revision"
:
"6e968a3fcdcbab092f5307fd0d85479d5af1e4dc"
,
"revisionTime"
:
"2016-11-01T18:00:25Z"
},
{
"path"
:
"github.com/hashicorp/hcl/hcl/scanner"
,
"checksumSHA1"
:
"lgR7PSAZ0RtvAc9OCtCnNsF/x8g="
,
"revision"
:
"6e968a3fcdcbab092f5307fd0d85479d5af1e4dc"
,
"revisionTime"
:
"2016-11-01T18:00:25Z"
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help