Finally remove our copy of "archive/tar" now that Go 1.4 is the minimum!

IT'S ABOUT TIME. 🎉

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
Tianon Gravi 2015-05-01 16:01:10 -06:00
parent 112ff23e41
commit d05398f1e9
12 changed files with 12 additions and 22 deletions

View file

@ -1,6 +1,7 @@
package archive
import (
"archive/tar"
"bufio"
"bytes"
"compress/bzip2"
@ -16,8 +17,6 @@ import (
"strings"
"syscall"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/pkg/fileutils"
"github.com/docker/docker/pkg/pools"

View file

@ -1,6 +1,7 @@
package archive
import (
"archive/tar"
"bytes"
"fmt"
"io"
@ -15,7 +16,6 @@ import (
"time"
"github.com/docker/docker/pkg/system"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
func TestIsArchiveNilHeader(t *testing.T) {

View file

@ -3,11 +3,10 @@
package archive
import (
"archive/tar"
"errors"
"os"
"syscall"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
// canonicalTarNameForPath returns platform-specific filepath

View file

@ -3,11 +3,10 @@
package archive
import (
"archive/tar"
"fmt"
"os"
"strings"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
// canonicalTarNameForPath returns platform-specific filepath

View file

@ -1,6 +1,7 @@
package archive
import (
"archive/tar"
"bytes"
"fmt"
"io"
@ -11,8 +12,6 @@ import (
"syscall"
"time"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/pkg/pools"
"github.com/docker/docker/pkg/system"

View file

@ -1,6 +1,7 @@
package archive
import (
"archive/tar"
"fmt"
"io"
"io/ioutil"
@ -9,8 +10,6 @@ import (
"strings"
"syscall"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
"github.com/docker/docker/pkg/pools"
"github.com/docker/docker/pkg/system"
)

View file

@ -1,9 +1,8 @@
package archive
import (
"archive/tar"
"testing"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
func TestApplyLayerInvalidFilenames(t *testing.T) {

View file

@ -1,6 +1,7 @@
package archive
import (
"archive/tar"
"bytes"
"fmt"
"io"
@ -8,8 +9,6 @@ import (
"os"
"path/filepath"
"time"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
var testUntarFns = map[string]func(string, io.Reader) error{

View file

@ -1,8 +1,8 @@
package archive
import (
"archive/tar"
"bytes"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
"io/ioutil"
)

View file

@ -1,6 +1,7 @@
package tarsum
import (
"archive/tar"
"bytes"
"compress/gzip"
"crypto"
@ -11,8 +12,6 @@ import (
"hash"
"io"
"strings"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
const (

View file

@ -1,6 +1,7 @@
package tarsum
import (
"archive/tar"
"bytes"
"compress/gzip"
"crypto/md5"
@ -14,8 +15,6 @@ import (
"io/ioutil"
"os"
"testing"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
type testLayer struct {

View file

@ -1,12 +1,11 @@
package tarsum
import (
"archive/tar"
"errors"
"sort"
"strconv"
"strings"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
// versioning of the TarSum algorithm