Change module path to github.com/hashicorp/hcl/v2

This is in preparation for the first v2 release from the main HCL
repository.
This commit is contained in:
Martin Atkins 2019-09-09 15:39:31 -07:00
parent af14e80638
commit 3327dee567
134 changed files with 189 additions and 220 deletions

View File

@ -22,7 +22,7 @@ If you have a working Go development environment, you can install this tool
with `go get` in the usual way: with `go get` in the usual way:
``` ```
$ go get -u github.com/hashicorp/hcl2/cmd/hcldec $ go get -u github.com/hashicorp/hcl/v2/cmd/hcldec
``` ```
This will install `hcldec` in `$GOPATH/bin`, which usually places it into This will install `hcldec` in `$GOPATH/bin`, which usually places it into

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"io" "io"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
type jsonDiagWriter struct { type jsonDiagWriter struct {

View File

@ -7,9 +7,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcldec" "github.com/hashicorp/hcl/v2/hcldec"
"github.com/hashicorp/hcl2/hclparse" "github.com/hashicorp/hcl/v2/hclparse"
flag "github.com/spf13/pflag" flag "github.com/spf13/pflag"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty/cty/function"

View File

@ -3,10 +3,10 @@ package main
import ( import (
"fmt" "fmt"
"github.com/hashicorp/hcl2/ext/userfunc" "github.com/hashicorp/hcl/v2/ext/userfunc"
"github.com/hashicorp/hcl2/gohcl" "github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcldec" "github.com/hashicorp/hcl/v2/hcldec"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty/cty/function"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"reflect" "reflect"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty/cty/function"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -9,9 +9,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hclparse" "github.com/hashicorp/hcl/v2/hclparse"
"github.com/hashicorp/hcl2/hclwrite" "github.com/hashicorp/hcl/v2/hclwrite"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
) )

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
func decodeJSONDiagnostics(src []byte) hcl.Diagnostics { func decodeJSONDiagnostics(src []byte) hcl.Diagnostics {

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
type LogBeginCallback func(testName string, testFile *TestFile) type LogBeginCallback func(testName string, testFile *TestFile)

View File

@ -7,8 +7,8 @@ import (
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hclparse" "github.com/hashicorp/hcl/v2/hclparse"
) )
func main() { func main() {

View File

@ -15,9 +15,9 @@ import (
"github.com/zclconf/go-cty/cty/convert" "github.com/zclconf/go-cty/cty/convert"
ctyjson "github.com/zclconf/go-cty/cty/json" ctyjson "github.com/zclconf/go-cty/cty/json"
"github.com/hashicorp/hcl2/ext/typeexpr" "github.com/hashicorp/hcl/v2/ext/typeexpr"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hclparse" "github.com/hashicorp/hcl/v2/hclparse"
) )
type Runner struct { type Runner struct {

View File

@ -6,9 +6,9 @@ import (
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/convert" "github.com/zclconf/go-cty/cty/convert"
"github.com/hashicorp/hcl2/ext/typeexpr" "github.com/hashicorp/hcl/v2/ext/typeexpr"
"github.com/hashicorp/hcl2/gohcl" "github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
type TestFile struct { type TestFile struct {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"reflect" "reflect"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
func findTraversalSpec(got hcl.Traversal, candidates []*TestFileExpectTraversal) *TestFileExpectTraversal { func findTraversalSpec(got hcl.Traversal, candidates []*TestFileExpectTraversal) *TestFileExpectTraversal {

View File

@ -3,7 +3,7 @@ package dynblock
import ( import (
"fmt" "fmt"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -3,9 +3,9 @@ package dynblock
import ( import (
"testing" "testing"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcldec" "github.com/hashicorp/hcl/v2/hcldec"
"github.com/hashicorp/hcl2/hcltest" "github.com/hashicorp/hcl/v2/hcltest"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -3,7 +3,7 @@ package dynblock
import ( import (
"fmt" "fmt"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/convert" "github.com/zclconf/go-cty/cty/convert"
) )

View File

@ -1,7 +1,7 @@
package dynblock package dynblock
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -1,7 +1,7 @@
package dynblock package dynblock
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -1,7 +1,7 @@
package dynblock package dynblock
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// Expand "dynamic" blocks in the given body, returning a new body that // Expand "dynamic" blocks in the given body, returning a new body that

View File

@ -1,6 +1,6 @@
package dynblock package dynblock
import "github.com/hashicorp/hcl2/hcl" import "github.com/hashicorp/hcl/v2/hcl"
var dynamicBlockHeaderSchema = hcl.BlockHeaderSchema{ var dynamicBlockHeaderSchema = hcl.BlockHeaderSchema{
Type: "dynamic", Type: "dynamic",

View File

@ -1,7 +1,7 @@
package dynblock package dynblock
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -1,7 +1,7 @@
package dynblock package dynblock
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -1,8 +1,8 @@
package dynblock package dynblock
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcldec" "github.com/hashicorp/hcl/v2/hcldec"
) )
// VariablesHCLDec is a wrapper around WalkVariables that uses the given hcldec // VariablesHCLDec is a wrapper around WalkVariables that uses the given hcldec

View File

@ -4,13 +4,13 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/hashicorp/hcl2/hcldec" "github.com/hashicorp/hcl/v2/hcldec"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcl/hclsyntax" "github.com/hashicorp/hcl/v2/hcl/hclsyntax"
) )
func TestVariables(t *testing.T) { func TestVariables(t *testing.T) {

View File

@ -4,8 +4,8 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hclparse" "github.com/hashicorp/hcl/v2/hclparse"
) )
// FileResolver creates and returns a Resolver that interprets include paths // FileResolver creates and returns a Resolver that interprets include paths

View File

@ -3,7 +3,7 @@ package include
import ( import (
"fmt" "fmt"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// MapResolver returns a Resolver that consults the given map for preloaded // MapResolver returns a Resolver that consults the given map for preloaded

View File

@ -1,7 +1,7 @@
package include package include
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// A Resolver maps an include path (an arbitrary string, but usually something // A Resolver maps an include path (an arbitrary string, but usually something

View File

@ -1,9 +1,9 @@
package include package include
import ( import (
"github.com/hashicorp/hcl2/ext/transform" "github.com/hashicorp/hcl/v2/ext/transform"
"github.com/hashicorp/hcl2/gohcl" "github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// Transformer builds a transformer that finds any "include" blocks in a body // Transformer builds a transformer that finds any "include" blocks in a body

View File

@ -5,9 +5,9 @@ import (
"testing" "testing"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/hashicorp/hcl2/gohcl" "github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcltest" "github.com/hashicorp/hcl/v2/hcltest"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -1,7 +1,7 @@
package transform package transform
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// NewErrorBody returns a hcl.Body that returns the given diagnostics whenever // NewErrorBody returns a hcl.Body that returns the given diagnostics whenever

View File

@ -1,7 +1,7 @@
package transform package transform
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// Shallow is equivalent to calling transformer.TransformBody(body), and // Shallow is equivalent to calling transformer.TransformBody(body), and

View File

@ -5,8 +5,8 @@ import (
"reflect" "reflect"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcltest" "github.com/hashicorp/hcl/v2/hcltest"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -1,7 +1,7 @@
package transform package transform
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// A Transformer takes a given body, applies some (possibly no-op) // A Transformer takes a given body, applies some (possibly no-op)

View File

@ -35,7 +35,7 @@ to allow only calls and keywords the JSON syntax is able to parse the given
string directly as an expression, rather than as a template as would be string directly as an expression, rather than as a template as would be
the case for normal expression evaluation. the case for normal expression evaluation.
For more information, see [the godoc reference](http://godoc.org/github.com/hashicorp/hcl2/ext/typeexpr). For more information, see [the godoc reference](http://godoc.org/github.com/hashicorp/hcl/v2/ext/typeexpr).
## Type Expression Syntax ## Type Expression Syntax

View File

@ -3,7 +3,7 @@ package typeexpr
import ( import (
"fmt" "fmt"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -3,11 +3,11 @@ package typeexpr
import ( import (
"testing" "testing"
"github.com/hashicorp/hcl2/gohcl" "github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcl/hclsyntax" "github.com/hashicorp/hcl/v2/hcl/hclsyntax"
"github.com/hashicorp/hcl2/hcl/json" "github.com/hashicorp/hcl/v2/hcl/json"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -5,9 +5,9 @@ import (
"fmt" "fmt"
"sort" "sort"
"github.com/hashicorp/hcl2/hcl/hclsyntax" "github.com/hashicorp/hcl/v2/hcl/hclsyntax"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -25,4 +25,4 @@ inclusion in a `hcl.EvalContext`. It also returns a new `cty.Body` that
contains the remainder of the content from the given body, allowing for contains the remainder of the content from the given body, allowing for
further processing of remaining content. further processing of remaining content.
For more information, see [the godoc reference](http://godoc.org/github.com/hashicorp/hcl2/ext/userfunc). For more information, see [the godoc reference](http://godoc.org/github.com/hashicorp/hcl/v2/ext/userfunc).

View File

@ -1,7 +1,7 @@
package userfunc package userfunc
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty/cty/function"
) )

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcl/hclsyntax" "github.com/hashicorp/hcl/v2/hcl/hclsyntax"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -1,7 +1,7 @@
package userfunc package userfunc
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty/cty/function"
) )

9
go.mod
View File

@ -1,12 +1,9 @@
// WARNING: This module will move to a new path when it transitions from module github.com/hashicorp/hcl/v2
// being "experimental" to being released.
module github.com/hashicorp/hcl2
require ( require (
github.com/agext/levenshtein v1.2.1 github.com/agext/levenshtein v1.2.1
github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3 github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3
github.com/apparentlymart/go-textseg v1.0.0 github.com/apparentlymart/go-textseg v1.0.0
github.com/bsm/go-vlq v0.0.0-20150828105119-ec6e8d4f5f4e
github.com/davecgh/go-spew v1.1.1 github.com/davecgh/go-spew v1.1.1
github.com/go-test/deep v1.0.3 github.com/go-test/deep v1.0.3
github.com/google/go-cmp v0.2.0 github.com/google/go-cmp v0.2.0
@ -15,16 +12,12 @@ require (
github.com/kr/pretty v0.1.0 github.com/kr/pretty v0.1.0
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7
github.com/onsi/ginkgo v1.7.0 // indirect
github.com/onsi/gomega v1.4.3 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sergi/go-diff v1.0.0 github.com/sergi/go-diff v1.0.0
github.com/spf13/pflag v1.0.2 github.com/spf13/pflag v1.0.2
github.com/stretchr/testify v1.2.2 // indirect github.com/stretchr/testify v1.2.2 // indirect
github.com/zclconf/go-cty v1.0.0 github.com/zclconf/go-cty v1.0.0
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734 golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734
golang.org/x/net v0.0.0-20190502183928-7f726cade0ab // indirect
golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82 // indirect golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82 // indirect
golang.org/x/text v0.3.2 // indirect golang.org/x/text v0.3.2 // indirect
gopkg.in/yaml.v2 v2.2.2 gopkg.in/yaml.v2 v2.2.2

24
go.sum
View File

@ -4,25 +4,17 @@ github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3 h1:ZSTrOEhi
github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2wFoYVvnCs0= github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2wFoYVvnCs0=
github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk= github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk=
github.com/bsm/go-vlq v0.0.0-20150828105119-ec6e8d4f5f4e h1:D64GF/Xr5zSUnM3q1Jylzo4sK7szhP/ON+nb2DB5XJA=
github.com/bsm/go-vlq v0.0.0-20150828105119-ec6e8d4f5f4e/go.mod h1:N+BjUcTjSxc2mtRGSCPsat1kze3CUtvJN3/jTXlp29k=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68=
github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ= github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357 h1:Rem2+U35z1QtPQc6r+WolF7yXiefXqDKyk+lN2pE164= github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357 h1:Rem2+U35z1QtPQc6r+WolF7yXiefXqDKyk+lN2pE164=
github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-multierror v0.0.0-20180717150148-3d5d8f294aa0 h1:j30noezaCfvNLcdMYSvHLv81DxYRSt1grlpseG67vhU= github.com/hashicorp/go-multierror v0.0.0-20180717150148-3d5d8f294aa0 h1:j30noezaCfvNLcdMYSvHLv81DxYRSt1grlpseG67vhU=
github.com/hashicorp/go-multierror v0.0.0-20180717150148-3d5d8f294aa0/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I= github.com/hashicorp/go-multierror v0.0.0-20180717150148-3d5d8f294aa0/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I=
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
@ -33,11 +25,6 @@ github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 h1:MtvEpTB6LX3v
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzCv8LZP15IdmG+YdwD2luVPHITV96TkirNBM= github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzCv8LZP15IdmG+YdwD2luVPHITV96TkirNBM=
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0 h1:WSHQ+IS43OoUrWtD1/bbclrwK8TTH5hzp+umCiuxHgs=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v1.4.3 h1:RE1xgDvH7imwFD45h+u2SgIfERHlS2yNG4DObb5BSKU=
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
@ -53,15 +40,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734 h1:p/H982KKEjUnLJkM3tt/LemDnOc1GiZL5FCVlORJ5zo= golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734 h1:p/H982KKEjUnLJkM3tt/LemDnOc1GiZL5FCVlORJ5zo=
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190502183928-7f726cade0ab h1:9RfW3ktsOZxgo9YNbBAjq1FWzc/igwEcUzZz8IXgSbk=
golang.org/x/net v0.0.0-20190502183928-7f726cade0ab/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e h1:o3PsSEY8E4eXWkXrIP9YJALUkVZqzHJT5DOasTyn8Vs=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82 h1:vsphBvatvfbhlb4PO1BYSr9dzugGxJ/SQHoNufZJq1w= golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82 h1:vsphBvatvfbhlb4PO1BYSr9dzugGxJ/SQHoNufZJq1w=
@ -75,10 +55,6 @@ google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9Ywl
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE= gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=

View File

@ -6,7 +6,7 @@ import (
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty/convert" "github.com/zclconf/go-cty/cty/convert"
"github.com/zclconf/go-cty/cty/gocty" "github.com/zclconf/go-cty/cty/gocty"
) )

View File

@ -7,8 +7,8 @@ import (
"testing" "testing"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
hclJSON "github.com/hashicorp/hcl2/hcl/json" hclJSON "github.com/hashicorp/hcl/v2/hcl/json"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -5,7 +5,7 @@ import (
"reflect" "reflect"
"sort" "sort"
"github.com/hashicorp/hcl2/hclwrite" "github.com/hashicorp/hcl/v2/hclwrite"
"github.com/zclconf/go-cty/cty/gocty" "github.com/zclconf/go-cty/cty/gocty"
) )

View File

@ -3,8 +3,8 @@ package gohcl_test
import ( import (
"fmt" "fmt"
"github.com/hashicorp/hcl2/gohcl" "github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl2/hclwrite" "github.com/hashicorp/hcl/v2/hclwrite"
) )
func ExampleEncodeIntoBody() { func ExampleEncodeIntoBody() {

View File

@ -6,7 +6,7 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// ImpliedBodySchema produces a hcl.BodySchema derived from the type of the // ImpliedBodySchema produces a hcl.BodySchema derived from the type of the

View File

@ -6,7 +6,7 @@ import (
"testing" "testing"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
func TestImpliedBodySchema(t *testing.T) { func TestImpliedBodySchema(t *testing.T) {

View File

@ -3,7 +3,7 @@ package gohcl
import ( import (
"reflect" "reflect"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
var victimExpr hcl.Expression var victimExpr hcl.Expression

View File

@ -53,7 +53,7 @@ which case ``nil`` is written to indicate the absense of the argument.
The sections below discuss some additional decoding use-cases. For full details The sections below discuss some additional decoding use-cases. For full details
on the `gohcl` package, see on the `gohcl` package, see
`the godoc reference <https://godoc.org/github.com/hashicorp/hcl2/gohcl>`_. `the godoc reference <https://godoc.org/github.com/hashicorp/hcl/v2/gohcl>`_.
.. _go-decoding-gohcl-evalcontext: .. _go-decoding-gohcl-evalcontext:

View File

@ -22,7 +22,7 @@ dynamically-typed data structures.
The sections below are an overview of the main parts of package ``hcldec``. The sections below are an overview of the main parts of package ``hcldec``.
For full details, see For full details, see
`the package godoc <https://godoc.org/github.com/hashicorp/hcl2/hcldec>`_. `the package godoc <https://godoc.org/github.com/hashicorp/hcl/v2/hcldec>`_.
.. _`HashiCorp Terraform`: https://www.terraform.io/ .. _`HashiCorp Terraform`: https://www.terraform.io/

View File

@ -34,7 +34,7 @@ to the more detailed information where needed while using the higher-level APIs
for the more straightforward portions of a configuration language. for the more straightforward portions of a configuration language.
The following subsections will give an overview of the low-level API. For full The following subsections will give an overview of the low-level API. For full
details, see `the godoc reference <https://godoc.org/github.com/hashicorp/hcl2/hcl>`_. details, see `the godoc reference <https://godoc.org/github.com/hashicorp/hcl/v2/hcl>`_.
Structural Decoding Structural Decoding
------------------- -------------------

View File

@ -61,4 +61,4 @@ Package ``hclparse``
The above list just highlights the main functions in this package. The above list just highlights the main functions in this package.
For full documentation, see For full documentation, see
`the hclparse godoc <https://godoc.org/github.com/hashicorp/hcl2/hclparse>`_. `the hclparse godoc <https://godoc.org/github.com/hashicorp/hcl/v2/hclparse>`_.

View File

@ -1,7 +1,7 @@
package hclsyntax package hclsyntax
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// setDiagEvalContext is an internal helper that will impose a particular // setDiagEvalContext is an internal helper that will impose a particular

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"sync" "sync"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/convert" "github.com/zclconf/go-cty/cty/convert"
"github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty/cty/function"

View File

@ -3,7 +3,7 @@ package hclsyntax
import ( import (
"fmt" "fmt"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/convert" "github.com/zclconf/go-cty/cty/convert"
"github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty/cty/function"

View File

@ -4,7 +4,7 @@ import (
"testing" "testing"
"github.com/go-test/deep" "github.com/go-test/deep"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/convert" "github.com/zclconf/go-cty/cty/convert"
) )

View File

@ -3,7 +3,7 @@ package hclsyntax
import ( import (
"testing" "testing"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -3,7 +3,7 @@ package hclsyntax
import ( import (
"testing" "testing"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty/cty/function"
"github.com/zclconf/go-cty/cty/function/stdlib" "github.com/zclconf/go-cty/cty/function/stdlib"

View File

@ -4,7 +4,7 @@ package hclsyntax
// Run 'go generate' on this package to update the set of functions here. // Run 'go generate' on this package to update the set of functions here.
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
func (e *AnonSymbolExpr) Variables() []hcl.Traversal { func (e *AnonSymbolExpr) Variables() []hcl.Traversal {

View File

@ -89,7 +89,7 @@ const outputPreamble = `package hclsyntax
// Run 'go generate' on this package to update the set of functions here. // Run 'go generate' on this package to update the set of functions here.
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
)` )`
const outputMethodFmt = ` const outputMethodFmt = `

View File

@ -1,7 +1,7 @@
package hclsyntax package hclsyntax
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// File is the top-level object resulting from parsing a configuration file. // File is the top-level object resulting from parsing a configuration file.

View File

@ -15,7 +15,7 @@ fuzz-exec-%: fuzz%-fuzz.zip
go-fuzz -bin=./fuzz$*-fuzz.zip -workdir=$(FUZZ_WORK_DIR) go-fuzz -bin=./fuzz$*-fuzz.zip -workdir=$(FUZZ_WORK_DIR)
fuzz%-fuzz.zip: %/fuzz.go fuzz%-fuzz.zip: %/fuzz.go
go-fuzz-build github.com/hashicorp/hcl2/hcl/hclsyntax/fuzz/$* go-fuzz-build github.com/hashicorp/hcl/v2/hcl/hclsyntax/fuzz/$*
tools: tools:
go get -u github.com/dvyukov/go-fuzz/go-fuzz go get -u github.com/dvyukov/go-fuzz/go-fuzz

View File

@ -1,8 +1,8 @@
package fuzzconfig package fuzzconfig
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcl/hclsyntax" "github.com/hashicorp/hcl/v2/hcl/hclsyntax"
) )
func Fuzz(data []byte) int { func Fuzz(data []byte) int {

View File

@ -1,8 +1,8 @@
package fuzzexpr package fuzzexpr
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcl/hclsyntax" "github.com/hashicorp/hcl/v2/hcl/hclsyntax"
) )
func Fuzz(data []byte) int { func Fuzz(data []byte) int {

View File

@ -1,8 +1,8 @@
package fuzztemplate package fuzztemplate
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcl/hclsyntax" "github.com/hashicorp/hcl/v2/hcl/hclsyntax"
) )
func Fuzz(data []byte) int { func Fuzz(data []byte) int {

View File

@ -1,8 +1,8 @@
package fuzztraversal package fuzztraversal
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcl/hclsyntax" "github.com/hashicorp/hcl/v2/hcl/hclsyntax"
) )
func Fuzz(data []byte) int { func Fuzz(data []byte) int {

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
type navigation struct { type navigation struct {

View File

@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"testing" "testing"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
func TestNavigationContextString(t *testing.T) { func TestNavigationContextString(t *testing.T) {

View File

@ -1,7 +1,7 @@
package hclsyntax package hclsyntax
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// Node is the abstract type that every AST node implements. // Node is the abstract type that every AST node implements.

View File

@ -4,7 +4,7 @@ import (
"testing" "testing"
"github.com/go-test/deep" "github.com/go-test/deep"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -7,7 +7,7 @@ import (
"unicode/utf8" "unicode/utf8"
"github.com/apparentlymart/go-textseg/textseg" "github.com/apparentlymart/go-textseg/textseg"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -6,7 +6,7 @@ import (
"unicode" "unicode"
"github.com/apparentlymart/go-textseg/textseg" "github.com/apparentlymart/go-textseg/textseg"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -4,7 +4,7 @@ import (
"testing" "testing"
"github.com/go-test/deep" "github.com/go-test/deep"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -1,7 +1,7 @@
package hclsyntax package hclsyntax
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -7,7 +7,7 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// This is set to true at init() time in tests, to enable more useful output // This is set to true at init() time in tests, to enable more useful output

View File

@ -1,7 +1,7 @@
package hclsyntax package hclsyntax
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// ParseConfig parses the given buffer as a whole HCL config file, returning // ParseConfig parses the given buffer as a whole HCL config file, returning

View File

@ -5,7 +5,7 @@ package hclsyntax
import ( import (
"bytes" "bytes"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// This file is generated from scan_tokens.rl. DO NOT EDIT. // This file is generated from scan_tokens.rl. DO NOT EDIT.

View File

@ -4,7 +4,7 @@ package hclsyntax
import ( import (
"bytes" "bytes"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// This file is generated from scan_tokens.rl. DO NOT EDIT. // This file is generated from scan_tokens.rl. DO NOT EDIT.

View File

@ -4,7 +4,7 @@ import (
"testing" "testing"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
func TestScanTokens_normal(t *testing.T) { func TestScanTokens_normal(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// AsHCLBlock returns the block data expressed as a *hcl.Block. // AsHCLBlock returns the block data expressed as a *hcl.Block.

View File

@ -1,7 +1,7 @@
package hclsyntax package hclsyntax
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------

View File

@ -4,7 +4,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
func TestBlocksAtPos(t *testing.T) { func TestBlocksAtPos(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/kylelemons/godebug/pretty" "github.com/kylelemons/godebug/pretty"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"github.com/apparentlymart/go-textseg/textseg" "github.com/apparentlymart/go-textseg/textseg"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// Token represents a sequence of bytes from some HCL code that has been // Token represents a sequence of bytes from some HCL code that has been

View File

@ -1,7 +1,7 @@
package hclsyntax package hclsyntax
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// Variables returns all of the variables referenced within a given experssion. // Variables returns all of the variables referenced within a given experssion.

View File

@ -5,7 +5,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/kr/pretty" "github.com/kr/pretty"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -1,7 +1,7 @@
package hclsyntax package hclsyntax
import ( import (
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// VisitFunc is the callback signature for VisitAll. // VisitFunc is the callback signature for VisitAll.

View File

@ -8,7 +8,7 @@ import (
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/go-test/deep" "github.com/go-test/deep"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
func TestWalk(t *testing.T) { func TestWalk(t *testing.T) {

View File

@ -6,12 +6,12 @@ import (
"testing" "testing"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
"github.com/hashicorp/hcl2/ext/dynblock" "github.com/hashicorp/hcl/v2/ext/dynblock"
"github.com/hashicorp/hcl2/gohcl" "github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/hashicorp/hcl2/hcl/hclsyntax" "github.com/hashicorp/hcl/v2/hcl/hclsyntax"
"github.com/hashicorp/hcl2/hcl/json" "github.com/hashicorp/hcl/v2/hcl/json"
"github.com/hashicorp/hcl2/hcldec" "github.com/hashicorp/hcl/v2/hcldec"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -3,7 +3,7 @@ package json
import ( import (
"math/big" "math/big"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
type node interface { type node interface {

View File

@ -12,7 +12,7 @@ fuzz-exec-%: fuzz%-fuzz.zip
go-fuzz -bin=./fuzz$*-fuzz.zip -workdir=$(FUZZ_WORK_DIR) go-fuzz -bin=./fuzz$*-fuzz.zip -workdir=$(FUZZ_WORK_DIR)
fuzz%-fuzz.zip: %/fuzz.go fuzz%-fuzz.zip: %/fuzz.go
go-fuzz-build github.com/hashicorp/hcl2/hcl/json/fuzz/$* go-fuzz-build github.com/hashicorp/hcl/v2/hcl/json/fuzz/$*
tools: tools:
go get -u github.com/dvyukov/go-fuzz/go-fuzz go get -u github.com/dvyukov/go-fuzz/go-fuzz

View File

@ -1,7 +1,7 @@
package fuzzconfig package fuzzconfig
import ( import (
"github.com/hashicorp/hcl2/hcl/json" "github.com/hashicorp/hcl/v2/hcl/json"
) )
func Fuzz(data []byte) int { func Fuzz(data []byte) int {

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
"github.com/go-test/deep" "github.com/go-test/deep"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
func init() { func init() {

View File

@ -5,7 +5,7 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
// Parse attempts to parse the given buffer as JSON and, if successful, returns // Parse attempts to parse the given buffer as JSON and, if successful, returns

View File

@ -3,7 +3,7 @@ package json
import ( import (
"testing" "testing"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"github.com/apparentlymart/go-textseg/textseg" "github.com/apparentlymart/go-textseg/textseg"
"github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/hcl/v2/hcl"
) )
//go:generate stringer -type tokenType scanner.go //go:generate stringer -type tokenType scanner.go

Some files were not shown because too many files have changed in this diff Show More