Skip to content

Commit

Permalink
Finally remove our copy of "archive/tar" now that Go 1.4 is the minimum!
Browse files Browse the repository at this point in the history
IT'S ABOUT TIME. 🎉

Signed-off-by: Andrew "Tianon" Page <[email protected]>
  • Loading branch information
tianon committed May 1, 2015
1 parent 1f2f3db commit 576985a
Show file tree
Hide file tree
Showing 40 changed files with 16 additions and 3,229 deletions.
2 changes: 1 addition & 1 deletion graph/tags_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package graph

import (
"archive/tar"
"bytes"
"io"
"os"
Expand All @@ -12,7 +13,6 @@ import (
_ "github.com/docker/docker/daemon/graphdriver/vfs" // import the vfs driver so it is used in the tests
"github.com/docker/docker/image"
"github.com/docker/docker/utils"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)

const (
Expand Down
11 changes: 0 additions & 11 deletions hack/vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,6 @@ clone git github.com/go-fsnotify/fsnotify v1.0.4

clone git github.com/go-check/check 64131543e7896d5bcc6bd5a76287eb75ea96c673

# get Go tip's archive/tar, for xattr support and improved performance
# TODO after Go 1.4 drops, bump our minimum supported version and drop this vendored dep
if [ "$1" = '--go' ]; then
# Go takes forever and a half to clone, so we only redownload it when explicitly requested via the "--go" flag to this script.
clone hg code.google.com/p/go 1b17b3426e3c
mv src/code.google.com/p/go/src/pkg/archive/tar tmp-tar
rm -rf src/code.google.com/p/go
mkdir -p src/code.google.com/p/go/src/pkg/archive
mv tmp-tar src/code.google.com/p/go/src/pkg/archive/tar
fi

# get distribution packages
clone git github.com/docker/distribution d957768537c5af40e4f4cd96871f7b2bde9e2923
mv src/github.com/docker/distribution/digest tmp-digest
Expand Down
2 changes: 1 addition & 1 deletion integration-cli/docker_api_containers_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"archive/tar"
"bytes"
"encoding/json"
"io"
Expand All @@ -11,7 +12,6 @@ import (

"github.com/docker/docker/api/types"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
"github.com/go-check/check"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-cli/docker_cli_push_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package main

import (
"archive/tar"
"fmt"
"io/ioutil"
"os"
"os/exec"
"strings"
"time"

"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
"github.com/go-check/check"
)

Expand Down
2 changes: 1 addition & 1 deletion integration-cli/utils.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"archive/tar"
"bytes"
"encoding/json"
"errors"
Expand All @@ -17,7 +18,6 @@ import (
"time"

"github.com/docker/docker/pkg/stringutils"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)

func getExitCode(err error) (int, error) {
Expand Down
3 changes: 1 addition & 2 deletions pkg/archive/archive.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package archive

import (
"archive/tar"
"bufio"
"bytes"
"compress/bzip2"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/archive/archive_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package archive

import (
"archive/tar"
"bytes"
"fmt"
"io"
Expand All @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions pkg/archive/archive_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions pkg/archive/archive_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions pkg/archive/changes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package archive

import (
"archive/tar"
"bytes"
"fmt"
"io"
Expand All @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions pkg/archive/diff.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package archive

import (
"archive/tar"
"fmt"
"io"
"io/ioutil"
Expand All @@ -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"
)
Expand Down
3 changes: 1 addition & 2 deletions pkg/archive/diff_test.go
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions pkg/archive/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package archive

import (
"archive/tar"
"bytes"
"fmt"
"io"
"io/ioutil"
"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{
Expand Down
2 changes: 1 addition & 1 deletion pkg/archive/wrap.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
3 changes: 1 addition & 2 deletions pkg/tarsum/tarsum.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package tarsum

import (
"archive/tar"
"bytes"
"compress/gzip"
"crypto"
Expand All @@ -11,8 +12,6 @@ import (
"hash"
"io"
"strings"

"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions pkg/tarsum/tarsum_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package tarsum

import (
"archive/tar"
"bytes"
"compress/gzip"
"crypto/md5"
Expand All @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions pkg/tarsum/versioning.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit 576985a

Please sign in to comment.