mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Don't compress the archive made from git's output.
Commit 894d4a23fb
made BuildFile use TarSum, which doesn't support
compressed tar archives.
This breaks builds from git url, which compressed it with bzip2.
Instead, just pass it uncompressed.
Docker-DCO-1.0-Signed-off-by: Paul Lietar <paul@lietar.net> (github: plietar)
This commit is contained in:
parent
42df36b6fc
commit
562a235763
2 changed files with 2 additions and 1 deletions
1
AUTHORS
1
AUTHORS
|
@ -148,6 +148,7 @@ odk- <github@odkurzacz.org>
|
||||||
Pascal Borreli <pascal@borreli.com>
|
Pascal Borreli <pascal@borreli.com>
|
||||||
Paul Bowsher <pbowsher@globalpersonals.co.uk>
|
Paul Bowsher <pbowsher@globalpersonals.co.uk>
|
||||||
Paul Hammond <paul@paulhammond.org>
|
Paul Hammond <paul@paulhammond.org>
|
||||||
|
Paul Liétar <paul@lietar.net>
|
||||||
Paul Nasrat <pnasrat@gmail.com>
|
Paul Nasrat <pnasrat@gmail.com>
|
||||||
Phil Spitler <pspitler@gmail.com>
|
Phil Spitler <pspitler@gmail.com>
|
||||||
Piotr Bogdan <ppbogdan@gmail.com>
|
Piotr Bogdan <ppbogdan@gmail.com>
|
||||||
|
|
2
api.go
2
api.go
|
@ -929,7 +929,7 @@ func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Requ
|
||||||
return fmt.Errorf("Error trying to use git: %s (%s)", err, output)
|
return fmt.Errorf("Error trying to use git: %s (%s)", err, output)
|
||||||
}
|
}
|
||||||
|
|
||||||
c, err := archive.Tar(root, archive.Bzip2)
|
c, err := archive.Tar(root, archive.Uncompressed)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue