Forráskód Böngészése

Merge pull request #1509 from dotcloud/1359-tar-pkg-ref

Add import for dotcloud/tar to replace std tar pkg
Michael Crosby 12 éve
szülő
commit
25d71fb01b
2 módosított fájl, 2 hozzáadás és 1 törlés
  1. 1 0
      Dockerfile
  2. 1 1
      utils/tarsum.go

+ 1 - 0
Dockerfile

@@ -15,6 +15,7 @@ run	cd /tmp && echo 'package main' > t.go && go test -a -i -v
 run	PKG=github.com/kr/pty REV=27435c699;		 git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV
 run	PKG=github.com/gorilla/context/ REV=708054d61e5; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV
 run	PKG=github.com/gorilla/mux/ REV=9b36453141c;	 git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV
+run	PKG=github.com/dotcloud/tar/ REV=d06045a6d9;	 git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV
 # Run dependencies
 run	apt-get install -y iptables
 # lxc requires updating ubuntu sources

+ 1 - 1
utils/tarsum.go

@@ -1,11 +1,11 @@
 package utils
 
 import (
-	"archive/tar"
 	"bytes"
 	"compress/gzip"
 	"crypto/sha256"
 	"encoding/hex"
+	"github.com/dotcloud/tar"
 	"hash"
 	"io"
 	"sort"