summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go.mod4
-rw-r--r--go.sum2
-rw-r--r--hclsyntax/parser.go2
-rw-r--r--hclsyntax/parser_template.go2
-rw-r--r--hclsyntax/token.go2
-rw-r--r--hclwrite/tokens.go2
-rw-r--r--json/scanner.go2
-rw-r--r--pos_scanner.go2
8 files changed, 11 insertions, 7 deletions
diff --git a/go.mod b/go.mod
index d80c99d..c8c289d 100644
--- a/go.mod
+++ b/go.mod
@@ -1,9 +1,11 @@
module github.com/hashicorp/hcl/v2
+go 1.12
+
require (
github.com/agext/levenshtein v1.2.1
github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3
- github.com/apparentlymart/go-textseg v1.0.0
+ github.com/apparentlymart/go-textseg/v12 v12.0.0
github.com/davecgh/go-spew v1.1.1
github.com/go-test/deep v1.0.3
github.com/google/go-cmp v0.3.1
diff --git a/go.sum b/go.sum
index 76b135f..2a1073d 100644
--- a/go.sum
+++ b/go.sum
@@ -4,6 +4,8 @@ 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-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/v12 v12.0.0 h1:bNEQyAGak9tojivJNkoqWErVCQbjdL7GzRt3F8NvfJ0=
+github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec=
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/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68=
diff --git a/hclsyntax/parser.go b/hclsyntax/parser.go
index f67d989..83efd9a 100644
--- a/hclsyntax/parser.go
+++ b/hclsyntax/parser.go
@@ -6,7 +6,7 @@ import (
"strconv"
"unicode/utf8"
- "github.com/apparentlymart/go-textseg/textseg"
+ "github.com/apparentlymart/go-textseg/v12/textseg"
"github.com/hashicorp/hcl/v2"
"github.com/zclconf/go-cty/cty"
)
diff --git a/hclsyntax/parser_template.go b/hclsyntax/parser_template.go
index eb8f7ea..bb85646 100644
--- a/hclsyntax/parser_template.go
+++ b/hclsyntax/parser_template.go
@@ -5,7 +5,7 @@ import (
"strings"
"unicode"
- "github.com/apparentlymart/go-textseg/textseg"
+ "github.com/apparentlymart/go-textseg/v12/textseg"
"github.com/hashicorp/hcl/v2"
"github.com/zclconf/go-cty/cty"
)
diff --git a/hclsyntax/token.go b/hclsyntax/token.go
index c7ffe20..688b90c 100644
--- a/hclsyntax/token.go
+++ b/hclsyntax/token.go
@@ -4,7 +4,7 @@ import (
"bytes"
"fmt"
- "github.com/apparentlymart/go-textseg/textseg"
+ "github.com/apparentlymart/go-textseg/v12/textseg"
"github.com/hashicorp/hcl/v2"
)
diff --git a/hclwrite/tokens.go b/hclwrite/tokens.go
index 3bd3e5f..7d21d09 100644
--- a/hclwrite/tokens.go
+++ b/hclwrite/tokens.go
@@ -4,7 +4,7 @@ import (
"bytes"
"io"
- "github.com/apparentlymart/go-textseg/textseg"
+ "github.com/apparentlymart/go-textseg/v12/textseg"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclsyntax"
)
diff --git a/json/scanner.go b/json/scanner.go
index 912eabc..f66251f 100644
--- a/json/scanner.go
+++ b/json/scanner.go
@@ -3,7 +3,7 @@ package json
import (
"fmt"
- "github.com/apparentlymart/go-textseg/textseg"
+ "github.com/apparentlymart/go-textseg/v12/textseg"
"github.com/hashicorp/hcl/v2"
)
diff --git a/pos_scanner.go b/pos_scanner.go
index 17c0d7c..ef0aa10 100644
--- a/pos_scanner.go
+++ b/pos_scanner.go
@@ -4,7 +4,7 @@ import (
"bufio"
"bytes"
- "github.com/apparentlymart/go-textseg/textseg"
+ "github.com/apparentlymart/go-textseg/v12/textseg"
)
// RangeScanner is a helper that will scan over a buffer using a bufio.SplitFunc