From 029c79e677c1e8f9279cdc64605c6279cd2db963 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Mon, 6 Jun 2016 19:36:04 -0500 Subject: [PATCH] Update HCL to latest version Pulls in https://github.com/hashicorp/hcl/pull/125 Which fixes #6359 --- vendor/github.com/hashicorp/hcl/.gitignore | 9 ---- vendor/github.com/hashicorp/hcl/.travis.yml | 3 -- .../hashicorp/hcl/hcl/strconv/quote.go | 11 +++-- vendor/vendor.json | 44 ++++++++++++++----- 4 files changed, 40 insertions(+), 27 deletions(-) delete mode 100644 vendor/github.com/hashicorp/hcl/.gitignore delete mode 100644 vendor/github.com/hashicorp/hcl/.travis.yml diff --git a/vendor/github.com/hashicorp/hcl/.gitignore b/vendor/github.com/hashicorp/hcl/.gitignore deleted file mode 100644 index 15586a2b5..000000000 --- a/vendor/github.com/hashicorp/hcl/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -y.output - -# ignore intellij files -.idea -*.iml -*.ipr -*.iws - -*.test diff --git a/vendor/github.com/hashicorp/hcl/.travis.yml b/vendor/github.com/hashicorp/hcl/.travis.yml deleted file mode 100644 index 83dc540ef..000000000 --- a/vendor/github.com/hashicorp/hcl/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -sudo: false -language: go -go: 1.5 diff --git a/vendor/github.com/hashicorp/hcl/hcl/strconv/quote.go b/vendor/github.com/hashicorp/hcl/hcl/strconv/quote.go index e87ac6356..6cfd8c3a5 100644 --- a/vendor/github.com/hashicorp/hcl/hcl/strconv/quote.go +++ b/vendor/github.com/hashicorp/hcl/hcl/strconv/quote.go @@ -49,7 +49,8 @@ func Unquote(s string) (t string, err error) { for len(s) > 0 { // If we're starting a '${}' then let it through un-unquoted. // Specifically: we don't unquote any characters within the `${}` - // section, except for escaped quotes, which we handle specifically. + // section, except for escaped quotes and escaped backslashes, which we + // handle specifically. if s[0] == '$' && len(s) > 1 && s[1] == '{' { buf = append(buf, '$', '{') s = s[2:] @@ -64,10 +65,12 @@ func Unquote(s string) (t string, err error) { s = s[size:] - // We special case escaped double quotes in interpolations, converting - // them to straight double quotes. + // We special case escaped double quotes and escaped backslashes in + // interpolations, converting them to their unescaped equivalents. if r == '\\' { - if q, _ := utf8.DecodeRuneInString(s); q == '"' { + q, _ := utf8.DecodeRuneInString(s) + switch q { + case '"', '\\': continue } } diff --git a/vendor/vendor.json b/vendor/vendor.json index 77438cecd..b379e0313 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -758,48 +758,70 @@ "revision": "7e3c02b30806fa5779d3bdfc152ce4c6f40e7b38" }, { + "checksumSHA1": "5LrCq/ydlbL6pq1cdmuxiw7QV98=", "path": "github.com/hashicorp/hcl", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "WP5ODRo9+USuAsKYPu5RW3q8Epg=", "path": "github.com/hashicorp/hcl/hcl/ast", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "z03dif8bqgQ3Zk/1RGbvfgBXMXo=", "path": "github.com/hashicorp/hcl/hcl/fmtcmd", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "SVw0qm83Anf5T2GkYabn+f7Ibv0=", "path": "github.com/hashicorp/hcl/hcl/parser", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "CSmwxPOTz7GSpnWPF9aGkbVeR64=", "path": "github.com/hashicorp/hcl/hcl/printer", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "WZM0q7Sya8PcGj607x1npgcEPa4=", "path": "github.com/hashicorp/hcl/hcl/scanner", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "ETy6J7OZ7zjBNq0V0Lm8E/7Xafw=", "path": "github.com/hashicorp/hcl/hcl/strconv", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "VGNVyGYDGTTCTRqGH5R+CL0u6xw=", "path": "github.com/hashicorp/hcl/hcl/token", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "uEaK2zagnGctsUmjWt8ZYmK1Yvs=", "path": "github.com/hashicorp/hcl/json/parser", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "S1e0F9ZKSnqgOLfjDTYazRL28tA=", "path": "github.com/hashicorp/hcl/json/scanner", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { + "checksumSHA1": "fNlXQCQEnb+B3k5UDL/r15xtSJY=", "path": "github.com/hashicorp/hcl/json/token", - "revision": "9a905a34e6280ce905da1a32344b25e81011197a" + "revision": "d7400db7143f8e869812e50a53acd6c8d92af3b8", + "revisionTime": "2016-06-07T00:19:40Z" }, { "path": "github.com/hashicorp/hil",