Browse Source

#33: fixes go module support breaking non module aware go versions, kudos to @snowzach

Pierre Curto 7 years ago
parent
commit
bb6bfd13c6
7 changed files with 7 additions and 7 deletions
  1. 1 1
      bench_test.go
  2. 1 1
      block_test.go
  3. 1 1
      go.mod
  4. 1 1
      reader.go
  5. 1 1
      reader_test.go
  6. 1 1
      writer.go
  7. 1 1
      writer_test.go

+ 1 - 1
bench_test.go

@@ -6,7 +6,7 @@ import (
 	"io/ioutil"
 	"testing"
 
-	lz4 "github.com/pierrec/lz4/v2"
+	"github.com/pierrec/lz4"
 )
 
 func BenchmarkCompress(b *testing.B) {

+ 1 - 1
block_test.go

@@ -8,7 +8,7 @@ import (
 	"reflect"
 	"testing"
 
-	lz4 "github.com/pierrec/lz4/v2"
+	"github.com/pierrec/lz4"
 )
 
 type testcase struct {

+ 1 - 1
go.mod

@@ -1,3 +1,3 @@
-module github.com/pierrec/lz4/v2
+module github.com/pierrec/lz4
 
 require github.com/pkg/profile v1.2.1

+ 1 - 1
reader.go

@@ -6,7 +6,7 @@ import (
 	"io"
 	"io/ioutil"
 
-	"github.com/pierrec/lz4/v2/internal/xxh32"
+	"github.com/pierrec/lz4/internal/xxh32"
 )
 
 // Reader implements the LZ4 frame decoder.

+ 1 - 1
reader_test.go

@@ -9,7 +9,7 @@ import (
 	"strings"
 	"testing"
 
-	lz4 "github.com/pierrec/lz4/v2"
+	"github.com/pierrec/lz4"
 )
 
 func TestReader(t *testing.T) {

+ 1 - 1
writer.go

@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"io"
 
-	"github.com/pierrec/lz4/v2/internal/xxh32"
+	"github.com/pierrec/lz4/internal/xxh32"
 )
 
 // Writer implements the LZ4 frame encoder.

+ 1 - 1
writer_test.go

@@ -8,7 +8,7 @@ import (
 	"reflect"
 	"testing"
 
-	lz4 "github.com/pierrec/lz4/v2"
+	"github.com/pierrec/lz4"
 )
 
 func TestWriter(t *testing.T) {