Skip to content

Commit

Permalink
Merge pull request #10282 from hashicorp/b-hcl-null
Browse files Browse the repository at this point in the history
vendor: update HCL to catch null chars
  • Loading branch information
mitchellh authored Nov 22, 2016
2 parents 67e6d36 + 23c58c6 commit 3f637ac
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 23 deletions.
9 changes: 9 additions & 0 deletions config/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ func TestLoadFile_badType(t *testing.T) {
}
}

func TestLoadFile_gitCrypt(t *testing.T) {
_, err := LoadFile(filepath.Join(fixtureDir, "git-crypt.tf"))
if err == nil {
t.Fatal("should have error")
}

t.Logf("err: %s", err)
}

func TestLoadFile_lifecycleKeyCheck(t *testing.T) {
_, err := LoadFile(filepath.Join(fixtureDir, "lifecycle_cbd_typo.tf"))
if err == nil {
Expand Down
Binary file added config/test-fixtures/git-crypt.tf
Binary file not shown.
6 changes: 6 additions & 0 deletions vendor/github.com/hashicorp/hcl/hcl/scanner/scanner.go

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

46 changes: 23 additions & 23 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -1502,68 +1502,68 @@
{
"checksumSHA1": "8OPDk+bKyRGJoKcS4QNw9F7dpE8=",
"path": "github.com/hashicorp/hcl",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "XQmjDva9JCGGkIecOgwtBEMCJhU=",
"path": "github.com/hashicorp/hcl/hcl/ast",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "5HVecyfmcTm6OTffEi6LGayQf5M=",
"path": "github.com/hashicorp/hcl/hcl/fmtcmd",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "croNloscHsjX87X+4/cKOURf1EY=",
"path": "github.com/hashicorp/hcl/hcl/parser",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "1k1PQRPdYEjeTbXsYz5ZP+Won1w=",
"path": "github.com/hashicorp/hcl/hcl/printer",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "lgR7PSAZ0RtvAc9OCtCnNsF/x8g=",
"checksumSHA1": "Zz4271B4Kc+rwwK7cbaRv7STfO8=",
"path": "github.com/hashicorp/hcl/hcl/scanner",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "/e0ULfQnGeUKiM1+iMnQhImo62k=",
"path": "github.com/hashicorp/hcl/hcl/strconv",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "c6yprzj06ASwCo18TtbbNNBHljA=",
"path": "github.com/hashicorp/hcl/hcl/token",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "138aCV5n8n7tkGYMsMVQQnnLq+0=",
"path": "github.com/hashicorp/hcl/json/parser",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "YdvFsNOMSWMLnY6fcliWQa0O5Fw=",
"path": "github.com/hashicorp/hcl/json/scanner",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "fNlXQCQEnb+B3k5UDL/r15xtSJY=",
"path": "github.com/hashicorp/hcl/json/token",
"revision": "3d702911d9708e8fea66cd77e04bd451ff25d3b1",
"revisionTime": "2016-11-09T22:51:35Z"
"revision": "7cb7455c285ca3bf3362aa4ba6a06a6d6f5c3ba0",
"revisionTime": "2016-11-22T02:11:24Z"
},
{
"checksumSHA1": "/TJCBetWCMVsOpehJzVk3S/xtWM=",
Expand Down

0 comments on commit 3f637ac

Please sign in to comment.